File tree Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -22,9 +22,26 @@ section: {
22
22
expr: " {'key': {}}.?key.optFlatMap(k, k.?subkey).hasValue()"
23
23
value: { bool_value: false }
24
24
}
25
+ test {
26
+ name: " map_null_entry_hasValue"
27
+ expr: " {'null_key': dyn(null)}.?null_key.hasValue()"
28
+ value: { bool_value: true }
29
+ }
25
30
test {
26
31
name: " map_null_entry_no_such_key"
27
- expr: " {'null_key': null}.?null_key.invalid.hasValue()"
32
+ expr: " {'null_key': dyn(null)}.?null_key.invalid.hasValue()"
33
+ eval_error: {
34
+ errors: { message: " no such key" }
35
+ }
36
+ }
37
+ test {
38
+ name: " map_absent_key_absent_field_none"
39
+ expr: " {true: dyn(0)}[?false].absent.hasValue()"
40
+ value: { bool_value: false }
41
+ }
42
+ test {
43
+ name: " map_present_key_invalid_field"
44
+ expr: " {true: dyn(0)}[?true].absent.hasValue()"
28
45
eval_error: {
29
46
errors: { message: " no such key" }
30
47
}
You can’t perform that action at this time.
0 commit comments