Esempio n. 1
0
 def try_split(value, expected):
     digits = max(0, -int(log10(currency.rounding)))
     result = float_split_str(value, precision_digits=digits)
     self.assertEqual(
         result, expected,
         'Split error: got %s, expected %s' % (result, expected))
Esempio n. 2
0
 def try_split(value, expected):
     digits = max(0, -int(log10(currency.rounding)))
     result = float_split_str(value, precision_digits=digits)
     self.assertEqual(result, expected, 'Split error: got %s, expected %s' % (result, expected))