More fun with roman numbers

This commit is contained in:
2023-10-20 10:38:20 -04:00
parent accf0d0c2b
commit 5b55118373
3 changed files with 78 additions and 3 deletions
+12
View File
@@ -16,3 +16,15 @@ import stuff
)
def test_find_sqrt_ish(n: int, expected: int):
assert stuff.find_sqrt_ish(n) == expected
@pytest.mark.parametrize(
("n", "expected"),
[
(3, "III"),
(58, "LVIII"),
(1994, "MCMXCIV"),
],
)
def test_int_to_roman(n: int, expected: str):
assert stuff.Roman.i2r(n) == expected