Skip to content

Commit

Permalink
Typos and small stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
tomhanika committed Feb 4, 2025
1 parent e5c71c4 commit e1eb31a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/test/clojure/conexp/fca/metrics_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,8 @@
(objects ctx) 0.5) 0))
(is (== (set-based-minkowski-distance #{'a} #{}) 1))
(is (== (set-based-minkowski-distance #{} #{'a}) 1))
(is (== (set-based-minkowski-distance #{'a 'b} #{'a 'c} 2) 0.5857864376269051))))
(is (>= (set-based-minkowski-distance #{'a 'b} #{'a 'c} 2) 0.58))
(is (>= (set-based-minkowski-distance #{'a 'b} #{'a 'c} 2) 0.59))))

(deftest test-lattice-attribute-distance
(let [ctx test-ctx-09
Expand Down Expand Up @@ -258,11 +259,10 @@

(deftest test-conceptual-distance
(let [ctx test-ctx-09
ctx2 (make-context (objects ctx) (attributes ctx) )
]
ctx2 (make-context (objects ctx) (attributes ctx))]
(is (== (lattice-object-distance ctx ctx) 0))
(is (== (lattice-object-distance ctx ctx 2) 0))
(is (== (lattice-object-distance ctx ctx 2 2) 0)))))
(is (== (lattice-object-distance ctx ctx 2 2) 0))))


;;;
Expand Down

0 comments on commit e1eb31a

Please sign in to comment.