diff options
author | Petteri Aimonen <jpa@git.mail.kapsi.fi> | 2013-03-09 12:35:07 +0200 |
---|---|---|
committer | Petteri Aimonen <jpa@git.mail.kapsi.fi> | 2013-03-09 12:35:07 +0200 |
commit | d2e3c1ad930efbee0ab4839124522da94f70ada4 (patch) | |
tree | bf9875dc44eb003841d59dbd3f1aba5186223bc7 /tests/test_encode3.c | |
parent | 5522e02133be7d9dfd2f350f2774dfc0abc15686 (diff) |
Fix bug with decoding empty message types. Add test for the same.
Note: the bug only applies to empty message types. Empty messages
of non-empty message types are not affected.
Update issue 65
Status: FixedInGit
Diffstat (limited to 'tests/test_encode3.c')
-rw-r--r-- | tests/test_encode3.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_encode3.c b/tests/test_encode3.c index 6db37fdc..4f6859ac 100644 --- a/tests/test_encode3.c +++ b/tests/test_encode3.c @@ -64,6 +64,7 @@ int main(int argc, char **argv) alltypes.rep_submsg[4].substuff3 = 2016; alltypes.rep_enum_count = 5; alltypes.rep_enum[4] = MyEnum_Truth; + alltypes.rep_emptymsg_count = 5; if (mode != 0) { @@ -107,6 +108,7 @@ int main(int argc, char **argv) alltypes.opt_submsg.substuff2 = 3056; alltypes.has_opt_enum = true; alltypes.opt_enum = MyEnum_Truth; + alltypes.has_opt_emptymsg = true; } alltypes.end = 1099; |