Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
twitch
live-coding-fr
Commits
97ae2352
Commit
97ae2352
authored
Nov 24, 2020
by
Colin DAMON
Browse files
Convert nine
parent
049abcfb
Changes
2
Show whitespace changes
Inline
Side-by-side
tcr-roman-numerals/src/main/java/fr/ippon/kata/numeral/Numerals.java
View file @
97ae2352
...
...
@@ -22,6 +22,7 @@ public class Numerals {
conversions
.
put
(
1
,
"I"
);
conversions
.
put
(
4
,
"IV"
);
conversions
.
put
(
5
,
"V"
);
conversions
.
put
(
9
,
"IX"
);
return
conversions
;
}
...
...
tcr-roman-numerals/src/test/java/fr/ippon/kata/numeral/NumeralsTest.java
View file @
97ae2352
...
...
@@ -35,4 +35,9 @@ class NumeralsTest {
void
shouldConvertSixToVI
()
{
assertThat
(
Numerals
.
toRoman
(
6
)).
isEqualTo
(
"VI"
);
}
@Test
void
shouldConvertNineToIX
()
{
assertThat
(
Numerals
.
toRoman
(
9
)).
isEqualTo
(
"IX"
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment