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
580826cd
Commit
580826cd
authored
Mar 14, 2019
by
Joe Bolinger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cherry-pick test fix from #5853
parent
604121aa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
basic.rb
ruby/compatibility_tests/v3.0.0/tests/basic.rb
+2
-2
No files found.
ruby/compatibility_tests/v3.0.0/tests/basic.rb
View file @
580826cd
...
...
@@ -212,12 +212,12 @@ module BasicTest
e
=
assert_raise
ArgumentError
do
MapMessage
.
new
(
:map_string_int32
=>
"hello"
)
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
TestMessage
.
new
(
:repeated_uint32
=>
"hello"
)
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
def
test_type_errors
...
...
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