diff options
author | Nobuaki Sukegawa <nsukeg@gmail.com> | 2015-10-10 03:11:49 +0900 |
---|---|---|
committer | Jens Geyer <jensg@apache.org> | 2015-10-14 00:40:23 +0200 |
commit | 228b328f7bffe4d03bc22027d5c6af58251dc3d0 (patch) | |
tree | 12eb444fd73f6ab99f863468af74651731060c1f /test/py | |
parent | 9b9366145cd832c2219ffe884b01f9a7c9980b36 (diff) | |
download | thrift-228b328f7bffe4d03bc22027d5c6af58251dc3d0.tar.gz |
THRIFT-3376 C# and Python JSON protocol double values lose precision
Client: C#, Python, C++, Ruby
Patch: Nobuaki Sukegawa <nsukeg@gmail.com>
This closes #643
Diffstat (limited to 'test/py')
-rwxr-xr-x | test/py/TestClient.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/py/TestClient.py b/test/py/TestClient.py index 7e3daf267..3a74353f7 100755 --- a/test/py/TestClient.py +++ b/test/py/TestClient.py @@ -158,6 +158,7 @@ class AbstractTest(unittest.TestCase): self.assertEqual(self.client.testDouble(-5.235098235), -5.235098235) self.assertEqual(self.client.testDouble(0), 0) self.assertEqual(self.client.testDouble(-1), -1) + self.assertEqual(self.client.testDouble(-0.000341012439638598279), -0.000341012439638598279) def testBinary(self): if isinstance(self, JSONTest): |