Skip to content
Permalink
Browse files

7 => VII, 70 => LXX, 700 => DCC

  • Loading branch information
michaelbannister committed Jul 10, 2016
1 parent 5f0a68b commit 35411e902161f953c2ed8b43574a9a5cc9bf3eaf
Showing with 3 additions and 1 deletion.
  1. +1 −0 src/main/kotlin/RomanNumerals.kt
  2. +2 −1 src/test/kotlin/DecimalToRomanConverterTest.kt
@@ -10,6 +10,7 @@ fun Int.toRoman(): String {
4 -> one() + five()
5 -> five()
6 -> five() + one()
7 -> five() + one() + one()
else -> ""
}
}.joinToString(separator = "")
@@ -33,7 +33,8 @@ class DecimalToRomanConverterTest {
arrayOf(1555, "MDLV"), // again, just checking
arrayOf(4, "IV"),
arrayOf(444, "CDXLIV"), // again, just checking
arrayOf(666, "DCLXVI")
arrayOf(666, "DCLXVI"),
arrayOf(777, "DCCLXXVII")
)

@Test

0 comments on commit 35411e9

Please sign in to comment.
You can’t perform that action at this time.