Fix for JRuby (assert_true is not present).

This commit is contained in:
Josh Haberman 2016-07-28 17:54:16 -07:00
parent e3094a8d80
commit a207a2bd00
2 changed files with 3 additions and 3 deletions

View File

@ -468,9 +468,9 @@ module BasicTest
assert m.length == 2
m2 = m.dup
assert m == m2
assert_equal m, m2
assert m.hash != 0
assert m.hash == m2.hash
assert_equal m.hash, m2.hash
collected = {}
m.each { |k,v| collected[v] = k }

View File

@ -92,7 +92,7 @@ class TestWellKnownTypes < Test::Unit::TestCase
ts = Google::Protobuf::Timestamp.new(seconds: 12345, nanos: 6789)
any.pack(ts)
assert_true any.is(Google::Protobuf::Timestamp)
assert any.is(Google::Protobuf::Timestamp)
assert_equal ts, any.unpack(Google::Protobuf::Timestamp)
end
end