it "should check types properly" do
Thrift.type_checking = true
begin
- lambda { Thrift.check_type(nil, Types::STOP) }.should raise_error(TypeError)
+ # lambda { Thrift.check_type(nil, Types::STOP) }.should raise_error(TypeError)
+ lambda { Thrift.check_type(3, Types::STOP) }.should raise_error(TypeError)
lambda { Thrift.check_type(nil, Types::VOID) }.should_not raise_error(TypeError)
lambda { Thrift.check_type(3, Types::VOID) }.should raise_error(TypeError)
lambda { Thrift.check_type(true, Types::BOOL) }.should_not raise_error(TypeError)
lambda { Thrift.check_type(3, Types::BOOL) }.should raise_error(TypeError)
- lambda { Thrift.check_type(nil, Types::BOOL) }.should raise_error(TypeError)
+ # lambda { Thrift.check_type(nil, Types::BOOL) }.should raise_error(TypeError)
lambda { Thrift.check_type(42, Types::BYTE) }.should_not raise_error(TypeError)
lambda { Thrift.check_type(42, Types::I16) }.should_not raise_error(TypeError)
lambda { Thrift.check_type(42, Types::I32) }.should_not raise_error(TypeError)