REFACTOR: extract logic and remove loop
This commit is contained in:
parent
5c9962eb61
commit
c1a5ed7ed7
2 changed files with 17 additions and 17 deletions
|
|
@ -14,11 +14,11 @@ void main() {
|
|||
expect(roman_numerals.integerToRoman(3), 'III');
|
||||
});
|
||||
|
||||
test('converts 5 to V', () {
|
||||
expect(roman_numerals.integerToRoman(5), 'V');
|
||||
});
|
||||
|
||||
test('converts 4 to IV', () {
|
||||
expect(roman_numerals.integerToRoman(4), 'IV');
|
||||
});
|
||||
|
||||
test('converts 5 to V', () {
|
||||
expect(roman_numerals.integerToRoman(5), 'V');
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue