We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ec747e8 commit 7a1434fCopy full SHA for 7a1434f
1 file changed
test/test_type.py
@@ -4,6 +4,7 @@
4
import unittest
5
import datetime
6
7
+import pytest
8
import orjson
9
10
@@ -181,6 +182,14 @@ def test_float(self):
181
182
self.assertEqual(1.893, orjson.loads("1.893"))
183
self.assertEqual(1.3, orjson.loads("1.3"))
184
185
+ @pytest.mark.xfail
186
+ def test_float_precision(self):
187
+ """
188
+ float precision
189
190
+ self.assertEqual(orjson.loads("31.245270191439438"), 31.245270191439438)
191
+ self.assertEqual(orjson.loads("121.48791951161945"), 121.48791951161945)
192
+
193
def test_float_notation(self):
194
"""
195
float notation
0 commit comments