Annotation of parser3/tests/397.html, revision 1.2
1.1 moko 1: $b64[ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/]
2:
3: 1 ^math:convert[](256)(16)
4: 1.1 ^json:string[^math:convert[](256)(16)[ $.format[file] ]]
5:
6: 2 ^math:convert[ ](256)(16)
7: 2.1 ^json:string[^math:convert[ ](256)(16)[ $.format[file] ]]
8:
9: 3 ^math:convert[ ](16)(10)
10: 3.1 ^json:string[^math:convert[ ](16)(10)[ $.format[file] ]]
11:
12: 4 ^math:convert[^#0A](256)(16)
13: 4.1 ^math:convert[97](10)(256)
14: 4.2 '^math:convert[410041](16)(256)'
15:
16: 5 ^math:convert[^#0A^#0A](256)(16)
17:
18: 6 ^math:convert[+10](10)(2)
19: 6.1 ^math:convert[-10](10)(2)
20: 6.2 ^math:convert[ -10 ](10)[01]
21:
22: 7 ^math:convert[-10][0123456789-][0123456789-]
23: 7.1 ^math:convert[-10][0123456789-](10)
24: 7.2 ^math:convert[1111](9)(3)
25:
26: 8 ^try-catch{ ^math:convert[1][a](2) }
27: 8.1 ^try-catch{ ^math:convert[123](3)[ab] }
28: 8.2 ^try-catch{ ^math:convert[12 1](3)[ab] }
29: 8.3 ^try-catch{ ^math:convert[ - ](2)(10) }
30: 8.4 ^try-catch{ ^math:convert[ + ](2)(10) }
31: 8.5 ^math:convert[ 12 ](3)[abc]
32:
33: 9 ^try-catch{ ^math:convert[1](2)[a] }
34: 9.1 ^try-catch{ ^math:convert[1](17)[ab] }
35: 9.2 ^try-catch{ ^math:convert[1](0)[ab] }
36: 9.3 ^try-catch{ ^math:convert[1][ab](17) }
37: 9.4 ^try-catch{ ^math:convert[1][ab](0) }
38: 9.5 ^try-catch{ ^math:convert[123][12][ab] }
39:
40: 10 ^math:convert[1212][01212][0ab]
41: 10.1 ^math:convert[254](10)[abab]
42: 10.1 ^math:convert[254](10)[--ab]
43: 10.2 ^math:convert[254](10)[ab--]
44:
45: 11. ^math:convert[001001](2)[ab]
46:
47: 12. '^math:convert[^math:convert[414241](16)(2)](2)(256)'
48:
49: $f[^file::load[binary;098font.gif]]
50:
51: $b[^f.base64[]]
52: $b[^b.replace[^table::create[nameless]{^taint[^#0A]}]]
53:
54: $b2[^math:convert[$f](256)[$b64]]
55:
56: 13. ^if($b eq $b2){OK}{failed}
57:
58: 14. $f[^math:convert[$b][$b64](256)[ $.format[string] ]]
59: '$f' ^f.length[]
60:
61: 15. $f[^math:convert[$b][$b64](256)[ $.format[file] ]]
62: ^json:string[$f]
1.2 ! moko 63:
! 64: 16. $s[^math:convert[412241](16)(256)]
! 65: $js[^json:parse[{"key":"$s"}]] $js.key
! 66:
E-mail: