Annotation of parser3/tests/261.html, revision 1.7
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[]
1.5 moko 11: $w[ ]
1.3 misha 12: $v[$void]
13:
14: Empty string vs void:
15:
16: Json: ^json:string[$s] vs ^json:string[$v]
17: Json (void as string): ^json:string[$s;$.void[string]] vs ^json:string[$v;$.void[string]]
18: Json (void as null): ^json:string[$s;$.void[null]] vs ^json:string[$v;$.void[null]]
19: Length: ^s.length[] vs ^v.length[]
20: Double: ^s.double(0) vs ^v.double(0)
21: Base64: "^s.base64[]" vs "^v.base64[]"
1.5 moko 22: Hash compatibility: "$s.key" "$w.key" "$v.key"
23: More hash compatibility: "^b[^s.contains[key]]" "^b[^w.contains[key]]" "^b[^w.contains[key]]"
1.7 ! moko 24: Methods are not visible: "^show[$s.length]" "^show[$w.length]" "^show[$v.length]"
1.3 misha 25:
1.5 moko 26: Non-empty or whitespace string not hash compatible: ^try-catch{
1.3 misha 27: $s[string]
28: $s.key
1.4 moko 29: }
30: Absent method empty string error: ^try-catch{
1.5 moko 31: $s[]
1.4 moko 32: ^s.something[]
33: }
1.5 moko 34: Absent method void error: ^try-catch{
35: ^v.something[]
36: }
1.4 moko 37: Absent method non-empty string error: ^try-catch{
1.5 moko 38: $s[string]
1.4 moko 39: ^s.something[]
1.3 misha 40: }
41:
42: ^string_methods.foreach[k;v]{
1.5 moko 43: ^if(!^void_methods.contains[$k]){
1.3 misha 44: String method $k absent in void
45: }
46: }
1.5 moko 47:
48: @b[v]{
49: ^if($v){true}{false}
1.6 moko 50:
51: @show[v]
52: $v.CLASS_NAME
E-mail: