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
668c6aa1
Commit
668c6aa1
authored
Nov 24, 2020
by
Colin DAMON
Browse files
Convert two
parent
a5243148
Changes
2
Show whitespace changes
Inline
Side-by-side
tcr-roman-numerals/src/main/java/fr/ippon/kata/numeral/Numerals.java
View file @
668c6aa1
...
...
@@ -7,6 +7,6 @@ public class Numerals {
return
""
;
}
return
"I"
;
return
"I"
.
repeat
(
arabic
)
;
}
}
tcr-roman-numerals/src/test/java/fr/ippon/kata/numeral/NumeralsTest.java
View file @
668c6aa1
...
...
@@ -15,4 +15,9 @@ class NumeralsTest {
void
shouldConvertOneToI
()
{
assertThat
(
Numerals
.
toRoman
(
1
)).
isEqualTo
(
"I"
);
}
@Test
void
shouldConvertTwoToII
()
{
assertThat
(
Numerals
.
toRoman
(
2
)).
isEqualTo
(
"II"
);
}
}
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