summaryrefslogtreecommitdiff
path: root/test/rb
diff options
context:
space:
mode:
authorKevin Clark <kclark@apache.org>2008-06-18 01:09:28 +0000
committerKevin Clark <kclark@apache.org>2008-06-18 01:09:28 +0000
commit41c0a0266b9e3fb0432a9b927f9ddb46a15d6f26 (patch)
tree52ea7e739b953c59053b5973d1530d4feef9091e /test/rb
parent8d79e3f9544d4b8d49b9ef6e596970a7c1f3e459 (diff)
downloadthrift-41c0a0266b9e3fb0432a9b927f9ddb46a15d6f26.tar.gz
Improve compatibility with the old Hash-style set.
Fix the integration test for the Set change git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668960 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/rb')
-rw-r--r--test/rb/integration/test_simple_handler.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/rb/integration/test_simple_handler.rb b/test/rb/integration/test_simple_handler.rb
index 7dd2fbc2f..fa52c0f80 100644
--- a/test/rb/integration/test_simple_handler.rb
+++ b/test/rb/integration/test_simple_handler.rb
@@ -114,9 +114,9 @@ class TestThrift < Test::Unit::TestCase
end
def test_set
- val = {1 => true, 2 => true, 3 => true}
- assert_equal(@client.testSet(val), val)
- assert_kind_of(Hash, @client.testSet(val))
+ val = Set.new([1, 2, 3])
+ assert_equal(val, @client.testSet(val))
+ assert_kind_of(Set, @client.testSet(val))
end
def get_struct