diff options
Diffstat (limited to 'ruby/tests/basic.rb')
-rw-r--r-- | ruby/tests/basic.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ruby/tests/basic.rb b/ruby/tests/basic.rb index 989a047e..e3fff81e 100644 --- a/ruby/tests/basic.rb +++ b/ruby/tests/basic.rb @@ -1181,5 +1181,15 @@ module BasicTest m2 = MapMessage.decode_json(MapMessage.encode_json(m)) assert m == m2 end + + def test_comparison_with_arbitrary_object + assert_false MapMessage.new == nil + end + + def test_respond_to + msg = MapMessage.new + assert msg.respond_to?(:map_string_int32) + assert_false msg.respond_to?(:map_string_int32) + end end end |