Skip to content

Commit

Permalink
Fix typo in test string
Browse files Browse the repository at this point in the history
  • Loading branch information
nnichols committed Feb 19, 2024
1 parent 9a3b070 commit a634305
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
6 changes: 0 additions & 6 deletions .github/dependabot.yml

This file was deleted.

12 changes: 6 additions & 6 deletions test/brewtility/precision_test.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@
(is (false? (sut/approximates? 100 90 0.01))
"90 is not within 1% of 100"))
(testing "Ensure that non-numeric values throw an exception"
#?(:clj (is (thrown-with-msg? Exception #"Cannot approximate non-numeric values" (sut/approximates? nil 100 0.00001))))
#?(:clj (is (thrown-with-msg? Exception #"Cannot approximate non-numeric values" (sut/approximates? 100 nil 0.00001))))
#?(:clj (is (thrown-with-msg? Exception #"Cannot approximate non-numeric values" (sut/approximates? 100 100 nil))))
#?(:cljs (is (thrown-with-msg? js/Error #"Cannot approximate non-numeric values" (sut/approximates? nil 100 0.00001))))
#?(:cljs (is (thrown-with-msg? js/Error #"Cannot approximate non-numeric values" (sut/approximates? 100 nil 0.00001))))
#?(:cljs (is (thrown-with-msg? js/Error #"Cannot approximate non-numeric values" (sut/approximates? 100 100 nil))))))
#?(:clj (is (thrown-with-msg? Exception #"Cannot approximate using non-numeric values" (sut/approximates? nil 100 0.00001))))
#?(:clj (is (thrown-with-msg? Exception #"Cannot approximate using non-numeric values" (sut/approximates? 100 nil 0.00001))))
#?(:clj (is (thrown-with-msg? Exception #"Cannot approximate using non-numeric values" (sut/approximates? 100 100 nil))))
#?(:cljs (is (thrown-with-msg? js/Error #"Cannot approximate using non-numeric values" (sut/approximates? nil 100 0.00001))))
#?(:cljs (is (thrown-with-msg? js/Error #"Cannot approximate using non-numeric values" (sut/approximates? 100 nil 0.00001))))
#?(:cljs (is (thrown-with-msg? js/Error #"Cannot approximate using non-numeric values" (sut/approximates? 100 100 nil))))))


(deftest ->1dp-test
Expand Down

0 comments on commit a634305

Please sign in to comment.