Skip to content

Commit

Permalink
Add test to demonstrate #68
Browse files Browse the repository at this point in the history
  • Loading branch information
wardle committed Oct 18, 2024
1 parent 8b1d358 commit 96d34f4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/com/eldrix/hermes/search_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@
(doseq [concept-id concept-ids]
(test-query svc (search/q-descendantOf concept-id))))))

(deftest ^:live test-query-and-constraint ;; if there is a query AND a constraint, they should be AND'ed together
(with-open [svc (hermes/open "snomed.db")]
(is (empty? (hermes/search svc {:constraint "<24700007" :query (search/q-concept-id 24700007)})))))

(comment
(def svc (hermes/open "snomed.db"))
(def searcher (.-searcher svc))
Expand Down

0 comments on commit 96d34f4

Please sign in to comment.