Skip to content

Commit

Permalink
adding missing test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
michalporeba committed Sep 11, 2024
1 parent e9816b5 commit 26542a6
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions exercises/practice/roman-numerals/test/roman_numerals_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
(deftest nine
(is (= "IX" (roman-numerals/numerals 9))))

(deftest sixteen
(is (= "XVI" (roman-numerals/numerals 16))))

(deftest twenty-seven
(is (= "XXVII" (roman-numerals/numerals 27))))

Expand All @@ -32,6 +35,9 @@
(deftest fifty-nine
(is (= "LIX" (roman-numerals/numerals 59))))

(deftest sixty-six
(is (="LXVI" (roman-numerals/numerals 66))))

(deftest ninety-three
(is (= "XCIII" (roman-numerals/numerals 93))))

Expand All @@ -41,12 +47,18 @@
(deftest one-hundred-sixty-three
(is (= "CLXIII" (roman-numerals/numerals 163))))

(deftest one-hundred-sixty-six
(is (= "CLXVI" (roman-numerals/numerals 166))))

(deftest four-hundred-two
(is (= "CDII" (roman-numerals/numerals 402))))

(deftest five-hundred-seventy-five
(is (= "DLXXV" (roman-numerals/numerals 575))))

(deftest six-hundred-sixty-six
(is (= "DCLXVI" (roman-numerals/numerals 666))))

(deftest nine-hundred-eleven
(is (= "CMXI" (roman-numerals/numerals 911))))

Expand All @@ -55,3 +67,12 @@

(deftest three-thousand
(is (= "MMM" (roman-numerals/numerals 3000))))

(deftest three-thousand
(is (= "MMMI" (roman-numerals/numerals 3001))))

(deftest three-thousand
(is (= "MMMDCCCLXXXVIII" (roman-numerals/numerals 3888))))

(deftest three-thousand
(is (= "MMMCMXCIX" (roman-numerals/numerals 3999))))

0 comments on commit 26542a6

Please sign in to comment.