Annotation of parser3/tests/261.html, revision 1.2
1.1 moko 1: @main[]
2:
3: $void_methods[^reflection:methods[void]]
4: $string_methods[^reflection:methods[string]]
5:
6: ^if($void_methods != $string_methods){
7: String has ^string_methods._count[] while void has ^void_methods._count[].
8: }
9:
10: $s[]
11: $v[$void]
12:
1.2 ! moko 13: Empty string vs void:
1.1 moko 14:
15: Json: ^json:string[$s] vs ^json:string[$v]
16: Length: ^s.length[] vs ^v.length[]
17: Double: ^s.double(0) vs ^v.double(0)
18: Base64: "^s.base64[]" vs "^v.base64[]"
1.2 ! moko 19: Hash compatibility: "$s.key" "$v.key"
! 20:
! 21: Non-empty string: ^try{
! 22: $s[string]
! 23: $s.key
! 24: }{
! 25: $exception.handled(1)
! 26: has no hash compatibility
! 27: }
1.1 moko 28:
29: ^string_methods.foreach[k;v]{
30: ^if(!($v.$k is 'junction')){
31: String method $k absent in void
32: }
33: }
E-mail: