Skip to content

Commit dff6bfd

Browse files
committed
Test that invalid queries involving or throw an exception instead of evaluating to nil
1 parent da2fb70 commit dff6bfd

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

test/datascript/test/query_or.cljc

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,4 +157,10 @@
157157
(d/q '[:find ?e
158158
:where (or-join [[?e]]
159159
[?e :name "Ivan"])]
160-
@test-db))))
160+
@test-db)))
161+
162+
(is (thrown-msg? "???"
163+
(d/q '[:find ?e
164+
:where
165+
[(or ?e 1)]]
166+
@test-db))))

0 commit comments

Comments
 (0)