Debian Codegraph @

python/tests/test_round_trip.py

raw
1 from roman_numerals import (
2 MAX,
3 MIN,
4 RomanNumeral,
5 )
6
7
8 def test_round_trip() -> None:
9 for n in range(MIN, MAX + 1):
10 num = RomanNumeral(n)
11 parsed = RomanNumeral.from_string(str(num))
12 assert num == parsed