Skip to content

Instantly share code, notes, and snippets.

@rossharper
Created February 20, 2016 21:36
Show Gist options
  • Save rossharper/5c8fe130cac356075912 to your computer and use it in GitHub Desktop.
Save rossharper/5c8fe130cac356075912 to your computer and use it in GitHub Desktop.
First two simple tests for Kotlin Roman Numerals Kata
class RomanNumeralGeneratorTest {
private var generator: RomanNumeralGenerator = RomanNumeralGenerator()
@Test
fun shouldReturnIfor1() {
assertThat(generator.arabicToRoman(1), equalTo("I"));
}
@Test
fun shouldReturnIIfor2() {
assertThat(generator.arabicToRoman(2), equalTo("II"));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment