Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
protobuf
Commits
a207a2bd
Commit
a207a2bd
authored
Jul 29, 2016
by
Josh Haberman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for JRuby (assert_true is not present).
parent
e3094a8d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
basic.rb
ruby/tests/basic.rb
+2
-2
well_known_types_test.rb
ruby/tests/well_known_types_test.rb
+1
-1
No files found.
ruby/tests/basic.rb
View file @
a207a2bd
...
...
@@ -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
}
...
...
ruby/tests/well_known_types_test.rb
View file @
a207a2bd
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment