From a8e42475b56dc4aba060642f893c168c092da60f Mon Sep 17 00:00:00 2001 From: Ryan Boldi Date: Tue, 10 Jan 2023 10:57:20 +0100 Subject: [PATCH] Update selection_test.cljc --- test/propeller/selection_test.cljc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/propeller/selection_test.cljc b/test/propeller/selection_test.cljc index 669d873..cbb44e2 100644 --- a/test/propeller/selection_test.cljc +++ b/test/propeller/selection_test.cljc @@ -12,7 +12,7 @@ {:index 3 :total-error 1}) {:empty :argmap})] (case (:index ret) 0 (= (:fitness ret) 1) ;if we selected index 0, check that fitness is correctly calculated to 1 - (= (:fitness ret) 1/2) + (= (float (:fitness ret)) 0.5) )))) (t/testing "should always return the same individual if there is only one" (t/testing "desipte it having bad error"