Commit a207a2bd authored by Josh Haberman's avatar Josh Haberman

Fix for JRuby (assert_true is not present).

parent e3094a8d
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment