We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents caa1d18 + 93c8bc7 commit a090117Copy full SHA for a090117
1 file changed
tests/test_engnum.py
@@ -307,13 +307,13 @@ def test_enum_to_enum():
307
308
def test_to_str():
309
# positive_numbers
310
- assert str(EngUnit('220') == '220')
311
- assert str(EngUnit('220ohm') == '220ohm')
+ assert str(EngUnit('220')) == '220'
+ assert str(EngUnit('220ohm')) == '220ohm'
312
assert str(EngUnit('220ohm', separator=" ")) == '220 ohm'
313
314
# negative_numbers
315
- assert str(EngUnit('-220') == '-220')
316
- assert str(EngUnit('-220ohm') == '-220ohm')
+ assert str(EngUnit('-220')) == '-220'
+ assert str(EngUnit('-220ohm')) == '-220ohm'
317
assert str(EngUnit('-220ohm', separator=" ")) == '-220 ohm'
318
319
assert EngUnit('220ohm').unit == 'ohm'
0 commit comments