git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@916911
13f79535-47bb-0310-9956-
ffa450edef68
struct.shorts.should == Set.new([3, 2])
end
+ it "should serialize false boolean fields correctly" do
+ b = BoolStruct.new(:yesno => false)
+ prot = BinaryProtocol.new(MemoryBufferTransport.new)
+ prot.should_receive(:write_bool).with(false)
+ b.write(prot)
+ end
+
it "should skip unexpected fields in structs and use default values" do
struct = Foo.new
prot = BaseProtocol.new(mock("transport"))