From dff6bfd38647da5a05f9aa25f91d0937f046e94d Mon Sep 17 00:00:00 2001 From: Dennis Schridde Date: Mon, 20 May 2019 15:33:02 +0200 Subject: [PATCH] Test that invalid queries involving `or` throw an exception instead of evaluating to `nil` --- test/datascript/test/query_or.cljc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/test/datascript/test/query_or.cljc b/test/datascript/test/query_or.cljc index 0dc30197..ef32c4d3 100644 --- a/test/datascript/test/query_or.cljc +++ b/test/datascript/test/query_or.cljc @@ -157,4 +157,10 @@ (d/q '[:find ?e :where (or-join [[?e]] [?e :name "Ivan"])] - @test-db)))) \ No newline at end of file + @test-db))) + + (is (thrown-msg? "???" + (d/q '[:find ?e + :where + [(or ?e 1)]] + @test-db))))