Example #1
0
 def test_to_number(self, number, prefix):
     if(
         prefix[0] == 'Y' and
         number == 10
     ):
         pytest.xfail('Interpreter precision?')
     assert to_number(str(number) + prefix[0]) == float(number * prefix[1])
Example #2
0
 def test_extra_digits_after_prefix(self):
     assert to_number('1k5') == 1005
     assert to_string(1005) == '1k5'