More fun with roman numbers
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user