THRIFT-1789 fix json protocol read set begin

Patch: Kevin Radloff
This commit is contained in:
Roger Meier 2013-01-19 21:04:12 +01:00
parent a1e36f6ee5
commit 772b2b1804
2 changed files with 3 additions and 2 deletions

View File

@ -717,6 +717,7 @@ module Thrift
def read_set_begin
read_json_array_start
[get_type_id_for_type_name(read_json_string), read_json_integer]
end
def read_set_end

View File

@ -435,8 +435,8 @@ describe 'JsonProtocol' do
end
it "should read set begin" do
@trans.write("[")
@prot.read_set_begin.should == nil
@trans.write("[\"rec\",2\"\"")
@prot.read_set_begin.should == [12, 2]
end
it "should read set end" do