def test_encodes_and_decodes_correctly(self): for x in range(1, 5000): if x in (2000, 3000, 4000, 5000): # known ambiguity with single thousands above 1000 pass else: assert x == h.decode_hebrew_numeral(h.encode_hebrew_numeral(x))
def test_can_encode_without_errors(self): for x in range(1, 5000): _ = h.encode_hebrew_numeral(x)