Skip to content
Snippets Groups Projects
Commit 97c65b1a authored by Simon Belak's avatar Simon Belak
Browse files

Fix failing tests

parent 7fb3ff47
No related branches found
No related tags found
No related merge requests found
......@@ -28,7 +28,7 @@
1
1
0
0.25
0.5
0]
(mapv :difference [(difference 1 2.0)
(difference 2.0 2.0)
......@@ -38,7 +38,7 @@
(difference true false)
(difference false true)
(difference false false)
(difference [1 0 1] [0 1 1])
(difference [[1 1] [2 0] [3 1]] [[1 0] [2 1] [3 1]])
(difference nil nil)]))
(expect
......@@ -63,8 +63,8 @@
(expect
(approximately 0.3 0.1)
(:distance (features-distance {:foo 2.0 :bar [1 2 3] :baz false}
{:foo 12 :bar [10.7 0.2 3] :baz false})))
(:distance (features-distance {:foo 2.0 :bar [[1 2] [2 3] [3 4]] :baz false}
{:foo 12 :bar [[1 10.7] [2 0.2] [3 5]] :baz false})))
(expect
[nil
......@@ -73,7 +73,7 @@
[[1] [10] [12]]
[[1 2] [10 11] [12 15]]
nil
[[1] [10 11] [12 15]]]
[[1 2] [10 11] [12 15]]]
[(#'c/comparable-segment [[1 1]] [])
(#'c/comparable-segment [] [[1 1]])
(#'c/comparable-segment nil nil)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment