Complete rb test server with testEnum and testTypedef
Reviewed by: mcslee
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665359 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/test/rb/TestServer.rb b/test/rb/TestServer.rb
index 892037e..16fe5f6 100755
--- a/test/rb/TestServer.rb
+++ b/test/rb/TestServer.rb
@@ -48,7 +48,7 @@
print "testMap(#{thing})\n"
return thing
end
-
+
def testSet(thing)
print "testSet(#{thing})\n"
return thing
@@ -68,17 +68,7 @@
end
return thing
end
-
- def testNest(thing)
- print "testNest(#{thing})\n"
- puts " i32_thing: #{thing.i32_thing}"
- puts " with struct: "
- %w{ string_thing byte_thing i32_thing }.each do |t|
- puts " #{t}: #{thing.struct_thing.send(t)}"
- end
- return thing
- end
-
+
def testInsanity(thing)
puts "insanity:"
puts " #{thing.inspect}"
@@ -91,6 +81,16 @@
return {thing => {thing => thing}}
end
+ def testEnum(thing)
+ puts "testEnum(#{thing})"
+ return thing
+ end
+
+ def testTypedef(thing)
+ puts "testTypedef(#{thing})"
+ return thing
+ end
+
end
handler = TestHandler.new()