Annotation of parser3/tests/341.html, revision 1.4
1.1 moko 1: $t[^table::create{id price
2: 1 6.50
3: 2 70.00
4: 3 60.85
1.3 moko 5: _default 0
1.1 moko 6: }]
7:
8: $n[^table::create{name
9: id
10: price}]
11:
12: Code coverage tests:
13:
14: ^try-catch{^t.hash[id][ $.type[wrong] ]}
15: ^try-catch{^t.hash[id][ $.type[ $.not_string[] ] ]}
16: ^try-catch{^t.hash[id][ $.wrong[option] ]}
17: ^try-catch{^t.hash[id][price][ not hash ]}
18: ^try-catch{^t.hash[id][ $.wrong[] ][ $.type[string] ]}
19: ^try-catch{^t.hash[id][$n][ $.type[string] ]}
20: ^try-catch{^t.hash[id]{code}[ $.type[string] ]}
1.2 moko 21: ^try-catch{^t.hash[ups;price]}
22: ^try-catch{^t.hash[id;ups]}
1.1 moko 23:
24: Valid calls tests:
25:
26: ^json:string[^t.hash[id]]
27: ^json:string[^t.hash[id][ $.type[table] ]]
28: ^json:string[^t.hash[id][price]]
29: ^json:string[^t.hash{id}[price][ $.distinct(true) ]]
30: ^json:string[^t.hash[id][$n]]
31: ^json:string[^t.hash{id}[$n][ $.distinct(true) ]]
32:
33: New functionality tests:
34:
35: ^json:string[^t.hash{=$t.id=}{$t.id - $t.price}]
36: ^json:string[^t.hash[id]{$t.id - $t.price}]
37:
38: ^json:string[^t.hash{id}{code}[ $.distinct(true) ]]
39: ^json:string[^t.hash[id]{ $h[$.key[$t.price]] $h }]
1.2 moko 40:
41: ^json:string[^t.hash[id;]]
1.4 ! moko 42: ^json:string[^t.hash[id;; $.type[string] ]]
E-mail: