diff options
author | Petteri Aimonen <jpa@git.mail.kapsi.fi> | 2021-02-03 17:32:46 +0200 |
---|---|---|
committer | Petteri Aimonen <jpa@git.mail.kapsi.fi> | 2021-02-03 17:32:46 +0200 |
commit | afd9e83039afa9e3f18eb53ad4d9c80d860c9361 (patch) | |
tree | ea7d386d6824ae0b3f549814fd485b7ce2b362cf | |
parent | 57674cbc6244842038486409a13e790a23a5af8d (diff) | |
download | nanopb-c-afd9e83039afa9e3f18eb53ad4d9c80d860c9361.tar.gz |
Expand alltypes test case for default values inside oneof (#635)
The 0.3 branch was not affected by this bug, but expanding the test case to cover it.
-rw-r--r-- | tests/alltypes/decode_alltypes.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/alltypes/decode_alltypes.c b/tests/alltypes/decode_alltypes.c index b74121f..3b0f524 100644 --- a/tests/alltypes/decode_alltypes.c +++ b/tests/alltypes/decode_alltypes.c @@ -198,6 +198,7 @@ bool check_alltypes(pb_istream_t *stream, int mode) TEST(alltypes.which_oneof == AllTypes_oneof_msg1_tag); TEST(strcmp(alltypes.oneof.oneof_msg1.substuff1, "4059") == 0); TEST(alltypes.oneof.oneof_msg1.substuff2 == 4059); + TEST(alltypes.oneof.oneof_msg1.substuff3 == 3); } else if (mode == 2) { |