Fix for JRuby (assert_true is not present).
This commit is contained in:
parent
e3094a8d80
commit
a207a2bd00
@ -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 }
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user