--- parser3/tests/389.html 2017/12/07 00:55:12 1.2 +++ parser3/tests/389.html 2019/12/06 23:05:30 1.6 @@ -30,7 +30,7 @@ code coverage tests: 4.11 ^try-catch{ ^inet:name2ip[$empty] } 4.12 ^try-catch{ ^inet:name2ip[name; $.no-such-option[] ] } 4.13 ^try-catch{ ^inet:name2ip[no-such-domain.артлебедев.рф; $.ipv[6] ] } - 4.14 ^inet:name2ip[test.артлебедев.рф; $.ipv[6] ] + 4.14 ^try-catch{ ^inet:name2ip[test.артлебедев.рф; $.ipv[6] ] } 5. math 5.1 ^math:random(1) @@ -43,7 +43,7 @@ code coverage tests: 5.10 ^try-catch{ ^math:convert[1](17;10) } 5.11 ^try-catch{ ^math:convert[1](10;17) } 5.12 ^math:convert[$empty](10;10) - 5.13 ^math:convert[+FF](16;10) + 5.13 ^math:convert[ +FF ](16;10) 6. string 6.1 ^try-catch{ $s[] ^s.int[] } @@ -61,3 +61,16 @@ code coverage tests: 6.13 ^try-catch{ ^string:unescape[no-such-mode;anything] } 6.14 ^try-catch{ ^string:unescape[js;any%20thing] } 6.15 ^try-catch{ ^s.save[no-such-mode;file.txt] } + +7. file + 7.1 ^try-catch{ ^file::base64[1;2] } + 7.2 ^try-catch{ ^file::base64{1}[2;3] } + 7.3 ^try-catch{ ^file::base64[text;fname.text;XXXXXX; $.no-such-option[] ] } + 7.4 ^try-catch{ ^file::base64[text;fname.text;XXXXXX; $.strict(true) ] } + 7.5 $f[^file::base64[text;fname.text;XXXXXX; $.content-type[strange] ]] ^json:string[$f] + + 7.10 ^file:fullpath[/fname.txt] + 7.11 ^file:fullpath[fname.txt] + + 7.15 ^try-catch{ ^file:list[.; $.stat(true) $.filter[.*] $.no-such-options[] ] } + 7.15 ^try-catch{ ^file:list[.; $.filter[ $.hash[] ] ] }