Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
protobuf-c
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
protobuf-c
Commits
ff04761e
Unverified
Commit
ff04761e
authored
Oct 18, 2019
by
Robert Edmonds
Committed by
GitHub
Oct 18, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #392 from acozzette/fix-test-asserts
Fixed some test assertions in test-generated-code2.c
parents
1f3d4e2e
5ee9afdc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
t/generated-code2/test-generated-code2.c
t/generated-code2/test-generated-code2.c
+2
-2
No files found.
t/generated-code2/test-generated-code2.c
View file @
ff04761e
...
...
@@ -1683,7 +1683,7 @@ assert_required_default_values_are_default (Foo__DefaultRequiredValues *mess)
assert
(
mess
->
v_float
==
2
.
5
);
assert
(
mess
->
v_double
==
4
.
5
);
assert
(
strcmp
(
mess
->
v_string
,
"hi mom
\n
"
)
==
0
);
assert
(
mess
->
v_bytes
.
len
=
/* a */
1
assert
(
mess
->
v_bytes
.
len
=
=
/* a */
1
+
/* space */
1
+
/* NUL */
1
+
/* space */
1
...
...
@@ -1722,7 +1722,7 @@ assert_optional_default_values_are_default (Foo__DefaultOptionalValues *mess)
assert
(
mess
->
v_double
==
4
.
5
);
assert
(
strcmp
(
mess
->
v_string
,
"hi mom
\n
"
)
==
0
);
assert
(
!
mess
->
has_v_bytes
);
assert
(
mess
->
v_bytes
.
len
=
/* a */
1
assert
(
mess
->
v_bytes
.
len
=
=
/* a */
1
+
/* space */
1
+
/* NUL */
1
+
/* space */
1
...
...
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