summaryrefslogtreecommitdiff
path: root/test/rb
diff options
context:
space:
mode:
authorNobuaki Sukegawa <nsukeg@gmail.com>2015-10-10 03:11:49 +0900
committerJens Geyer <jensg@apache.org>2015-10-14 00:40:23 +0200
commit228b328f7bffe4d03bc22027d5c6af58251dc3d0 (patch)
tree12eb444fd73f6ab99f863468af74651731060c1f /test/rb
parent9b9366145cd832c2219ffe884b01f9a7c9980b36 (diff)
downloadthrift-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/rb')
-rwxr-xr-xtest/rb/integration/TestClient.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/rb/integration/TestClient.rb b/test/rb/integration/TestClient.rb
index 8fd63369e..6aec596ce 100755
--- a/test/rb/integration/TestClient.rb
+++ b/test/rb/integration/TestClient.rb
@@ -130,7 +130,7 @@ class SimpleClientTest < Test::Unit::TestCase
def test_double
p 'test_double'
- val = 3.14
+ val = 3.14159265358979323846
assert_equal(@client.testDouble(val), val)
assert_equal(@client.testDouble(-val), -val)
assert_kind_of(Float, @client.testDouble(val))