File: test_round_trip.py

package info (click to toggle)
roman-numerals 4.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 236 kB
  • sloc: python: 393; sh: 6; makefile: 2
file content (12 lines) | stat: -rw-r--r-- 245 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
from roman_numerals import (
    MAX,
    MIN,
    RomanNumeral,
)


def test_round_trip() -> None:
    for n in range(MIN, MAX + 1):
        num = RomanNumeral(n)
        parsed = RomanNumeral.from_string(str(num))
        assert num == parsed