Skip to content

Commit

Permalink
Merge pull request #298 from nightlord/develop
Browse files Browse the repository at this point in the history
add Implicit equality constraints test,related #292
  • Loading branch information
sritchie committed Jan 12, 2016
2 parents 08db2e9 + 7d73321 commit 3c141da
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions cascalog-core/test/cascalog/api_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -812,3 +812,17 @@
(< ?age 50)))
=> (produces [["ben" 35]
[["ben" 35] ["jerry" 41]]])))

(deftest test-implicit-equality-constraints
(let [num-pair [
[1 2]
[0 0]
[1 1]
[4 4]
[8 3]
[4 0]
]]
(fact
(<- [?n]
(num-pair :> ?n ?n))
=> (produces [[0] [1] [4]]))))

0 comments on commit 3c141da

Please sign in to comment.