Skip to content

Commit e27c3e2

Browse files
Dorian BirrauxRaj Balaebail
authored andcommitted
Add test with big real and neg exponent.
1 parent 680b159 commit e27c3e2

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

wolframclient/tests/deserializers/wxf_deserialize.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,11 @@ def test_bigreal_precision_exponent(self):
147147
res = binary_deserialize(wxf, consumer=WXFConsumer())
148148
self.assertEqual(res, decimal.Decimal("9.999999999999996843873323328588479844E+999"))
149149

150+
def test_bigreal_precision_negexponent(self):
151+
wxf = b'8:RC4.590261537982443550699999999999999999999281`19.66183743091127*^-16'
152+
res = binary_deserialize(wxf, consumer=WXFConsumer())
153+
self.assertEqual(res, decimal.Decimal('4.590261537982443550699999999999999999999281E-16'))
154+
150155
def test_empty_lists(self):
151156
value = ((), ((),), (1, ()), ())
152157
self.wxf_assert_roundtrip(value)

0 commit comments

Comments
 (0)