Annotation of parser3/tests/421.html, revision 1.5

1.1       moko        1: @main[]
                      2: $list[^reflection:classes[]]
                      3: ^list.sort[name;]{$name}
                      4: 
                      5: 1. nonexistent method exception check for all classes
                      6: ^list.foreach[name;type]{
                      7:     $class[^reflection:class_by_name[$name]]
                      8:     Class $name $type ^if(def ^reflection:base_name[$class]){(^reflection:base_name[$class])}
                      9:     $code[^^$name^:bad[]]
                     10:     $code ^try-catch{^process{$code}}
                     11:     ^try-catch{^class.bad[]}
                     12: }
                     13: 
                     14: 2. nonexistent field exception check for all classes
                     15: ^list.foreach[name;type]{
                     16:     $class[^reflection:class_by_name[$name]]
                     17:     Class $name
                     18:     $code[^$$name^:bad]
                     19:     $code ^try-catch{^process{$code}
                     20:        no exception}
1.4       moko       21:     ^try-catch{^process{$class.bad}
1.1       moko       22:        no exception}
                     23: }
                     24: 
                     25: 3. nonexistent method and field exception check for all objects
                     26: 
                     27: $s[1]
                     28: $doc[^xdoc::create{^xml[]}]
                     29: ^check(true)
                     30: ^check[s]
                     31: ^check(1)
                     32: ^check(^s.int[])
                     33: ^check[^date::now[]]
                     34: ^check[^file::create[name]]
                     35: ^check[^hash::create[]]
                     36: ^check[^image::create(100;100)]
                     37: ^check[^regex::create[.]]
                     38: ^check[^table::create{field}]
                     39: ^check[$void]
                     40: ^check[^obj::create[]]
                     41: ^check[$doc]
                     42: ^check[$doc.documentElement]
1.3       moko       43: ^check[^array::create[]]
1.1       moko       44: 
1.4       moko       45: 4. nonexistent constructor
                     46:   ^try-catch{ ^hash::bad[] }
1.5     ! moko       47:   ^try-catch{ ^bad::bad[] }
1.4       moko       48: 
1.1       moko       49: @xml[]
                     50: <?xml version="1.0"?>
                     51: <document>content</document>
                     52: 
                     53: @check[v]
                     54: 
                     55: #$v.CLASS_NAME method ^try-catch{ ^v.bad[] }
                     56: $v.CLASS_NAME
                     57:     method ^try-catch{ ^v.bad[] }    field ^try-catch{ $v.bad
                     58:        no exception}
                     59: 
                     60: @CLASS
                     61: obj
                     62: 
                     63: @create[]

E-mail: