28 lines
659 B
Dart
28 lines
659 B
Dart
import 'package:tdd_katas/roman_numerals.dart' as roman_numerals;
|
|
import 'package:test/test.dart';
|
|
|
|
void main() {
|
|
test('converts 1 to I', () {
|
|
expect(roman_numerals.integerToRoman(1), 'I');
|
|
});
|
|
|
|
test('converts 2 to II', () {
|
|
expect(roman_numerals.integerToRoman(2), 'II');
|
|
});
|
|
|
|
test('converts 3 to III', () {
|
|
expect(roman_numerals.integerToRoman(3), 'III');
|
|
});
|
|
|
|
test('converts 4 to IV', () {
|
|
expect(roman_numerals.integerToRoman(4), 'IV');
|
|
});
|
|
|
|
test('converts 5 to V', () {
|
|
expect(roman_numerals.integerToRoman(5), 'V');
|
|
});
|
|
|
|
test('converts 6 to VI', () {
|
|
expect(roman_numerals.integerToRoman(6), 'VI');
|
|
});
|
|
}
|