From 80674855958ff6378513cbfabb651404115fbc1d Mon Sep 17 00:00:00 2001 From: Mark Slee Date: Tue, 20 Nov 2007 05:54:13 +0000 Subject: [PATCH] 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 --- test/rb/TestServer.rb | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/test/rb/TestServer.rb b/test/rb/TestServer.rb index 892037ec..16fe5f69 100755 --- a/test/rb/TestServer.rb +++ b/test/rb/TestServer.rb @@ -48,7 +48,7 @@ class TestHandler print "testMap(#{thing})\n" return thing end - + def testSet(thing) print "testSet(#{thing})\n" return thing @@ -68,17 +68,7 @@ class TestHandler 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 @@ class TestHandler 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() -- 2.17.1