Skip to content
Permalink
Browse files

2 is written as II

  • Loading branch information
michaelbannister committed Jul 3, 2016
1 parent 79ffb3f commit 0ffccf9efa018990bc62f468fb9094803863fb87
Showing with 4 additions and 4 deletions.
  1. +1 −1 src/main/kotlin/RomanNumerals.kt
  2. +3 −3 src/test/kotlin/DecimalToRomanConverterTest.kt
@@ -1,3 +1,3 @@
fun Int.toRoman(): String {
return "I"
return "I".repeat(this)
}
@@ -3,8 +3,8 @@ import kotlin.test.assertEquals

class DecimalToRomanConverterTest {

@Test fun `1 is written as I`() {
assertEquals("I", 1.toRoman())
}
@Test fun `1 is written as I`() = assertEquals("I", 1.toRoman())

@Test fun `2 is written as II`() = assertEquals("II", 2.toRoman())
}

0 comments on commit 0ffccf9

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