roman: add more tests

This commit is contained in:
vinchent 2024-09-22 21:09:51 +02:00
parent 6f853c25d0
commit b37f8a8d4c

View File

@ -16,6 +16,10 @@ func TestRomanNemerals(t *testing.T) {
{"7 gets converted to VII", 7, "VII"},
{"9 gets converted to IX", 9, "IX"},
{"10 gets converted to X", 10, "X"},
{"14 gets converted to XIV", 14, "XIV"},
{"18 gets converted to XVIII", 18, "XVIII"},
{"20 gets converted to XX", 20, "XX"},
{"39 gets converted to XXXIX", 39, "XXXIX"},
}
for _, test := range cases {
t.Run(test.Description, func(t *testing.T) {