diff options
author | Jens Geyer <jensg@apache.org> | 2014-12-14 03:14:26 +0100 |
---|---|---|
committer | Jens Geyer <jensg@apache.org> | 2015-01-03 17:37:54 +0100 |
commit | 8bcfdd98ae59d840b677a485b74dda3953b4bcc1 (patch) | |
tree | 659ef62202eea161ca503d7ab3250238830abc8f /test/rb | |
parent | 43e195afcd4cd3db67c7343271920af147e268e6 (diff) | |
download | thrift-8bcfdd98ae59d840b677a485b74dda3953b4bcc1.tar.gz |
THRIFT-2886 Integrate binary type in standard Thrift cross test
Client: C_glib, C++, D, Erlang, Go, Haskell, Lua, Java/Me, JavaScript, Node, Ocaml, Perl, PHP, Python, Ruby
Patch: Jens Geyer
This closes #341
Minimal server-side implementations and TODO stubs for various languages to let "make check" succeeed.
Not contained in this patch and still TODO:
- client side implementations, i.e. calls to testBinary() and appropriate tests
- server side hex printout missing for some languages
Diffstat (limited to 'test/rb')
-rwxr-xr-x | test/rb/integration/TestClient.rb | 2 | ||||
-rwxr-xr-x | test/rb/integration/TestServer.rb | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/test/rb/integration/TestClient.rb b/test/rb/integration/TestClient.rb index 41625a8b7..3659ccb74 100755 --- a/test/rb/integration/TestClient.rb +++ b/test/rb/integration/TestClient.rb @@ -116,6 +116,8 @@ class SimpleClientTest < Test::Unit::TestCase assert_kind_of(Float, @client.testDouble(val)) end + # TODO: testBinary + def test_map val = {1 => 1, 2 => 2, 3 => 3} assert_equal(@client.testMap(val), val) diff --git a/test/rb/integration/TestServer.rb b/test/rb/integration/TestServer.rb index 3e365ca22..64949bc80 100755 --- a/test/rb/integration/TestServer.rb +++ b/test/rb/integration/TestServer.rb @@ -26,7 +26,7 @@ require 'thrift' require 'thrift_test' class SimpleHandler - [:testVoid, :testString, :testByte, :testI32, :testI64, :testDouble, + [:testVoid, :testString, :testByte, :testI32, :testI64, :testDouble, :testBinary, :testStruct, :testMap, :testSet, :testList, :testNest, :testEnum, :testTypedef, :testMultiException].each do |meth| |