Skip to content

Commit 26542a6

Browse files
committed
adding missing test cases
1 parent e9816b5 commit 26542a6

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

exercises/practice/roman-numerals/test/roman_numerals_test.clj

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
(deftest nine
2424
(is (= "IX" (roman-numerals/numerals 9))))
2525

26+
(deftest sixteen
27+
(is (= "XVI" (roman-numerals/numerals 16))))
28+
2629
(deftest twenty-seven
2730
(is (= "XXVII" (roman-numerals/numerals 27))))
2831

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

38+
(deftest sixty-six
39+
(is (="LXVI" (roman-numerals/numerals 66))))
40+
3541
(deftest ninety-three
3642
(is (= "XCIII" (roman-numerals/numerals 93))))
3743

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

50+
(deftest one-hundred-sixty-six
51+
(is (= "CLXVI" (roman-numerals/numerals 166))))
52+
4453
(deftest four-hundred-two
4554
(is (= "CDII" (roman-numerals/numerals 402))))
4655

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

59+
(deftest six-hundred-sixty-six
60+
(is (= "DCLXVI" (roman-numerals/numerals 666))))
61+
5062
(deftest nine-hundred-eleven
5163
(is (= "CMXI" (roman-numerals/numerals 911))))
5264

@@ -55,3 +67,12 @@
5567

5668
(deftest three-thousand
5769
(is (= "MMM" (roman-numerals/numerals 3000))))
70+
71+
(deftest three-thousand
72+
(is (= "MMMI" (roman-numerals/numerals 3001))))
73+
74+
(deftest three-thousand
75+
(is (= "MMMDCCCLXXXVIII" (roman-numerals/numerals 3888))))
76+
77+
(deftest three-thousand
78+
(is (= "MMMCMXCIX" (roman-numerals/numerals 3999))))

0 commit comments

Comments
 (0)