box-o-sand/leetcode/test_roman.py
2023-10-24 15:48:15 -04:00

16 lines
246 B
Python

import pytest
import roman
@pytest.mark.parametrize(
("n", "expected"),
[
(3, "III"),
(58, "LVIII"),
(1994, "MCMXCIV"),
],
)
def test_int_to_roman(n: int, expected: str):
assert roman.i2r(n) == expected