Created
June 11, 2020 20:29
-
-
Save theboreddev/e36ba341905846e64e3b42e68093df15 to your computer and use it in GitHub Desktop.
singleDigitsTests
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class RomanNumeralsTest { | |
@Test | |
public void convert_shouldReturnI() { | |
final String romanNumeral = RomanNumerals.convert(1); | |
assertThat(romanNumeral, is("I")); | |
} | |
@Test | |
public void convert_shouldReturnV() { | |
final String romanNumeral = RomanNumerals.convert(5); | |
assertThat(romanNumeral, is("V")); | |
} | |
@Test | |
public void convert_shouldReturnX() { | |
final String romanNumeral = RomanNumerals.convert(10); | |
assertThat(romanNumeral, is("X")); | |
} | |
@Test | |
public void convert_shouldReturnL() { | |
final String romanNumeral = RomanNumerals.convert(50); | |
assertThat(romanNumeral, is("L")); | |
} | |
@Test | |
public void convert_shouldReturnC() { | |
final String romanNumeral = RomanNumerals.convert(100); | |
assertThat(romanNumeral, is("C")); | |
} | |
@Test | |
public void convert_shouldReturnD() { | |
final String romanNumeral = RomanNumerals.convert(500); | |
assertThat(romanNumeral, is("D")); | |
} | |
@Test | |
public void convert_shouldReturnM() { | |
final String romanNumeral = RomanNumerals.convert(1000); | |
assertThat(romanNumeral, is("M")); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment