Skip to content

Commit 7aa5d8e

Browse files
committed
✨ (roman-numerals): add seventh-test and refator
1 parent 66f44f2 commit 7aa5d8e

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

property-base-test/roman_number.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ type RomanNumerals struct {
88
}
99

1010
var allRomanNumerals = []RomanNumerals{
11+
{50, "L"},
12+
{40, "XL"},
1113
{10, "X"},
1214
{9, "IX"},
1315
{5, "V"},

property-base-test/roman_number_test.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ func TestRomanNumerals(t *testing.T) {
1414
{"4 gets converted to IV", 4, "IV"},
1515
{"5 gets converted to V", 5, "V"},
1616
{"9 gets converted to IX", 9, "IX"},
17+
{"10 gets converted to X", 10, "X"},
18+
{"40 gets converted to XL", 40, "XL"},
19+
{"47 gets converted to XLVII", 47, "XLVII"},
20+
{"49 gets converted to XLIX", 49, "XLIX"},
21+
{"50 gets converted to L", 50, "L"},
1722
}
1823

1924
for _, test := range cases {

0 commit comments

Comments
 (0)