diff options
author | Petteri Aimonen <jpa@git.mail.kapsi.fi> | 2015-09-12 13:27:56 +0300 |
---|---|---|
committer | Petteri Aimonen <jpa@git.mail.kapsi.fi> | 2015-09-12 13:27:56 +0300 |
commit | 936cfdc675c2dc3580c2459e8b1773a1d0bf9a8b (patch) | |
tree | 3337c87f74cb16b66ef4b5dda501ce0cc9392bc1 /tests/multiple_files/test_multiple_files.c | |
parent | 708084e7883a95dd7fd315cdc909f6664491c043 (diff) |
Expand the multiple_files test case to include oneofs and enums
Diffstat (limited to 'tests/multiple_files/test_multiple_files.c')
-rw-r--r-- | tests/multiple_files/test_multiple_files.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/tests/multiple_files/test_multiple_files.c b/tests/multiple_files/test_multiple_files.c index 05722dc5..5134f03f 100644 --- a/tests/multiple_files/test_multiple_files.c +++ b/tests/multiple_files/test_multiple_files.c @@ -4,9 +4,19 @@ #include <stdio.h> #include <pb_encode.h> -#include "callbacks2.pb.h" +#include "unittests.h" +#include "multifile2.pb.h" + +/* Check that the size definition is obtained properly */ +static const int foo = OneofMessage_size; int main() { - return 0; + int status = 0; + + /* Check that enum signedness is detected properly */ + TEST(PB_LTYPE(Enums_fields[0].type) == PB_LTYPE_VARINT); + TEST(PB_LTYPE(Enums_fields[0].type) == PB_LTYPE_UVARINT); + + return status; } |