--- parser3/tests/397.html 2019/11/12 22:03:32 1.2 +++ parser3/tests/397.html 2019/11/24 23:30:22 1.5 @@ -11,7 +11,7 @@ $b64[ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghi 4 ^math:convert[^#0A](256)(16) 4.1 ^math:convert[97](10)(256) -4.2 '^math:convert[410041](16)(256)' +4.2 ^math:convert[^math:convert[410D41](16)(256)](256)(16) 5 ^math:convert[^#0A^#0A](256)(16) @@ -48,18 +48,17 @@ $b64[ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghi $f[^file::load[binary;098font.gif]] -$b[^f.base64[]] -$b[^b.replace[^table::create[nameless]{^taint[^#0A]}]] +$b[^f.base64[ $.pad(false) ]] $b2[^math:convert[$f](256)[$b64]] 13. ^if($b eq $b2){OK}{failed} -14. $f[^math:convert[$b][$b64](256)[ $.format[string] ]] - '$f' ^f.length[] +14. ^try-catch{ $f[^math:convert[$b][$b64](256)[ $.format[string] ]] } -15. $f[^math:convert[$b][$b64](256)[ $.format[file] ]] - ^json:string[$f] +15. $f2[^math:convert[$b][$b64](256)[ $.format[file] ]] + ^json:string[$f2] + ^f.md5[] = ^f2.md5[] 16. $s[^math:convert[412241](16)(256)] $js[^json:parse[{"key":"$s"}]] $js.key