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