|
@@ -1183,13 +1183,15 @@ module BasicTest
|
|
end
|
|
end
|
|
|
|
|
|
def test_comparison_with_arbitrary_object
|
|
def test_comparison_with_arbitrary_object
|
|
- assert_false MapMessage.new == nil
|
|
|
|
|
|
+ assert MapMessage.new != nil
|
|
end
|
|
end
|
|
|
|
|
|
def test_respond_to
|
|
def test_respond_to
|
|
|
|
+ # This test fails with JRuby 1.7.23, likely because of an old JRuby bug.
|
|
|
|
+ return if RUBY_PLATFORM == "java"
|
|
msg = MapMessage.new
|
|
msg = MapMessage.new
|
|
assert msg.respond_to?(:map_string_int32)
|
|
assert msg.respond_to?(:map_string_int32)
|
|
- assert_false msg.respond_to?(:bacon)
|
|
|
|
|
|
+ assert !msg.respond_to?(:bacon)
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|