Skip to content

Commit

Permalink
FIX: Expressions again
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Oct 19, 2023
1 parent bcc679b commit 7f85762
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/schema/meta/expression_tests.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
---
# null fall-through logic
- expression: sidecar.MissingValue != true
result: true
- expression: null.anything != true
result: true
- expression: sidecar.MissingValue
result: null
- expression: null.anything
result: null
- expression: (null)
result: null
- expression: null[0] != true
result: true
- expression: null[0]
result: null
- expression: null && true
result: null
- expression: true && null
Expand All @@ -27,7 +27,7 @@
- expression: intersects(null, [])
result: false
- expression: match(null, 'pattern')
result: false
result: null
- expression: match('string', null)
result: false
- expression: substr(null, 1, 4)
Expand Down Expand Up @@ -59,11 +59,13 @@
- expression: null == 1
result: false
- expression: '"VolumeTiming" in null'
result: false
result: null
- expression: exists(null, "bids-uri")
result: 0
- expression: exists([], null)
result: 0
- expression: true || sidecar.MissingValue
result: true

# General expressions
- expression: 1 + 2
Expand Down

0 comments on commit 7f85762

Please sign in to comment.