Added more values to the decimal conversion tests

This commit is contained in:
bjmb
2017-03-16 09:17:54 -04:00
parent 79e6a43c95
commit 13f7925eeb

View File

@@ -140,7 +140,7 @@ class UnmarshalTest(unittest.TestCase):
def test_decimal(self):
# testing implicit numeric conversion
# int, tuple(sign, digits, exp), float
converted_types = (10001, (0, (1, 0, 0, 0, 0, 1), -3), 100.1)
converted_types = (10001, (0, (1, 0, 0, 0, 0, 1), -3), 100.1, -87.629798)
if sys.version_info < (2, 7):
# Decimal in Python 2.6 does not accept floats for lossless initialization