Annotation of parser3/tests/261.html, revision 1.4
1.3 misha 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:
13: Empty string vs void:
14:
15: Json: ^json:string[$s] vs ^json:string[$v]
16: Json (void as string): ^json:string[$s;$.void[string]] vs ^json:string[$v;$.void[string]]
17: Json (void as null): ^json:string[$s;$.void[null]] vs ^json:string[$v;$.void[null]]
18: Length: ^s.length[] vs ^v.length[]
19: Double: ^s.double(0) vs ^v.double(0)
20: Base64: "^s.base64[]" vs "^v.base64[]"
21: Hash compatibility: "$s.key" "$v.key"
22:
1.4 ! moko 23: Non-empty string not hash compatible: ^try-catch{
1.3 misha 24: $s[string]
25: $s.key
1.4 ! moko 26: }
! 27: Absent method empty string error: ^try-catch{
! 28: $s[string]
! 29: ^s.something[]
! 30: }
! 31: Absent method non-empty string error: ^try-catch{
! 32: $s[]
! 33: ^s.something[]
1.3 misha 34: }
35:
36: ^string_methods.foreach[k;v]{
37: ^if(!($v.$k is 'junction')){
38: String method $k absent in void
39: }
40: }
E-mail: