cherry-pick test fix from #5853

pull/5896/head
Joe Bolinger 6 years ago
parent 604121aaa4
commit 580826cd97
  1. 4
      ruby/compatibility_tests/v3.0.0/tests/basic.rb

@ -212,12 +212,12 @@ module BasicTest
e = assert_raise ArgumentError do e = assert_raise ArgumentError do
MapMessage.new(:map_string_int32 => "hello") MapMessage.new(:map_string_int32 => "hello")
end end
assert_equal e.message, "Expected Hash object as initializer value for map field 'map_string_int32'." assert_equal e.message, "Expected Hash object as initializer value for map field 'map_string_int32' (given String)."
e = assert_raise ArgumentError do e = assert_raise ArgumentError do
TestMessage.new(:repeated_uint32 => "hello") TestMessage.new(:repeated_uint32 => "hello")
end end
assert_equal e.message, "Expected array as initializer value for repeated field 'repeated_uint32'." assert_equal e.message, "Expected array as initializer value for repeated field 'repeated_uint32' (given String)."
end end
def test_type_errors def test_type_errors

Loading…
Cancel
Save