Fixed some test assertions in test-generated-code2.c

I fixed a couple test assertions here that seemed to be accidentally
using assignment (=) instead of equality (==).
This commit is contained in:
Adam Cozzette 2019-08-27 11:07:26 -07:00
parent 1390409f4e
commit 5ee9afdc15

View File

@ -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