Commit 0524ea30 authored by Raphaël Bleuse's avatar Raphaël Bleuse

Update tests of ProcInt.__repr__

parent 9dd32449
......@@ -85,6 +85,7 @@ class TestDisplay:
assert format(itv, ':') == '0'
assert format(itv) == str(itv)
assert repr(itv) == 'ProcInt(inf=0, sup=0)'
assert itv == eval(repr(itv))
def test_wide(self):
itv = ProcInt(0, 41)
......@@ -92,6 +93,7 @@ class TestDisplay:
assert format(itv, ':') == '0:41'
assert format(itv) == str(itv)
assert repr(itv) == 'ProcInt(inf=0, sup=41)'
assert itv == eval(repr(itv))
def test_bad_format_spec(self):
with pytest.raises(ValueError, match='^Invalid format specifier$'):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment