Annotation of parser3/tests/389.html, revision 1.8

1.7       moko        1: @main[]
1.1       moko        2: code coverage tests:
                      3: 
                      4: 1. int
                      5:     $s[1]
                      6:     $i(^s.int[])
                      7:     1.1 ^i.double(2)
                      8:     1.2 ^i.dec(1) $i
                      9:     1.3 ^i.inc(1) $i
                     10:     1.4 ^i.mul(2) $i
                     11: 
                     12: 2. double
                     13:     $d(1.1)
                     14:     2.1 ^d.double(2)
                     15: 
                     16: 3. bool
                     17:     $b(true)
                     18:     3.1 ^b.double(2)
                     19:     3.2 ^if(^b.bool(false)){true}{false}
                     20: 
1.2       moko       21: 4. inet
                     22:     4.1 ^try-catch{ ^inet:aton[1.1.1.300] }
                     23:     4.2 ^try-catch{ ^inet:aton[a.b.c.d] }
                     24: 
                     25:     4.5 ^try-catch{ ^inet:ip2name[$empty] }
                     26:     4.6 ^try-catch{ ^inet:ip2name[ip; $.no-such-option[] ] }
                     27:     4.7 ^try-catch{ ^inet:ip2name[ip; $.ipv[invalid] ] }
                     28:     4.8 ^try-catch{ ^inet:ip2name[1.1.1.300] }
1.8     ! moko       29:     4.9 ^try-catch-filtered{ ^inet:ip2name[1.1.1.1; $.ipv[6] ] }(28)
1.2       moko       30: 
                     31:     4.11 ^try-catch{ ^inet:name2ip[$empty] }
                     32:     4.12 ^try-catch{ ^inet:name2ip[name; $.no-such-option[] ] }
1.8     ! moko       33:     4.13 ^try-catch-filtered{ ^inet:name2ip[no-such-domain.артлебедев.рф; $.ipv[6] ] }(70)
1.6       moko       34:     4.14 ^try-catch{ ^inet:name2ip[test.артлебедев.рф; $.ipv[6] ] }
1.2       moko       35: 
                     36: 5. math
                     37:     5.1 ^math:random(1)
                     38:     5.2 ^try-catch{ ^math:random(1e10) }
                     39: 
                     40:     5.4 ^try-catch{ ^math:digest[shaX;123] }
                     41:     5.5 ^try-catch{ ^math:digest[sha1;123; $.format[unknown] ] }
                     42:     5.6 ^try-catch{ ^math:digest[sha1;123; $.no-such-option[] ] }
                     43: 
                     44:     5.10 ^try-catch{ ^math:convert[1](17;10) }
                     45:     5.11 ^try-catch{ ^math:convert[1](10;17) }
                     46:     5.12 ^math:convert[$empty](10;10)
1.5       moko       47:     5.13 ^math:convert[  +FF  ](16;10)
1.2       moko       48: 
                     49: 6. string
                     50:     6.1 ^try-catch{ $s[] ^s.int[] }
                     51:     6.2 ^try-catch{ $s[] ^s.double[] }
                     52:     6.3 ^try-catch{ $s[] ^s.bool[] }
                     53:     6.4 ^try-catch{ $s[] ^s.bool(bug) }
                     54:     6.5 ^try-catch{ $s[bug] ^s.bool[] }
                     55:     6.6 ^if(^s.bool(1)){true}{false}
                     56:     6.7 ^try-catch{ $s[s] ^s.pos[s](-1) }
                     57:     6.8 $s[a,b,c] ^json:string[^s.rsplit[,]; $.indent(true) ]
                     58:     6.9 $s[a,,b,c] ^json:string[^s.split[,,;rh]; $.indent(true) ]
                     59:     6.10 ^try-catch{  ^s.split[,;hv] }
                     60:     6.11 ^try-catch{ ^string:base64[anything; $.no-such-option[] ] }
                     61:     6.12 ^try-catch{ ^string:unescape[anything;anything; $.no-such-option[] ] }
                     62:     6.13 ^try-catch{ ^string:unescape[no-such-mode;anything] }
                     63:     6.14 ^try-catch{ ^string:unescape[js;any%20thing] }
                     64:     6.15 ^try-catch{ ^s.save[no-such-mode;file.txt] }
1.3       moko       65: 
                     66: 7. file
                     67:     7.1 ^try-catch{ ^file::base64[1;2] }
                     68:     7.2 ^try-catch{ ^file::base64{1}[2;3] }
                     69:     7.3 ^try-catch{ ^file::base64[text;fname.text;XXXXXX; $.no-such-option[] ] }
                     70:     7.4 ^try-catch{ ^file::base64[text;fname.text;XXXXXX; $.strict(true) ] }
                     71:     7.5 $f[^file::base64[text;fname.text;XXXXXX; $.content-type[strange] ]] ^json:string[$f]
                     72: 
                     73:     7.10 ^file:fullpath[/fname.txt]
                     74:     7.11 ^file:fullpath[fname.txt]
                     75: 
                     76:     7.15 ^try-catch{ ^file:list[.; $.stat(true) $.filter[.*] $.no-such-options[] ] }
                     77:     7.15 ^try-catch{ ^file:list[.; $.filter[ $.hash[] ] ] }

E-mail: