From a01856f4ab7f51f129dda7387acca8a63d039105 Mon Sep 17 00:00:00 2001 From: Petteri Aimonen Date: Tue, 16 Jul 2013 11:07:34 +0300 Subject: Add test case for extra fields in AllTypes --- tests/Makefile | 1 + tests/alltypes_with_extra_fields.pb | Bin 0 -> 523 bytes 2 files changed, 1 insertion(+) create mode 100644 tests/alltypes_with_extra_fields.pb diff --git a/tests/Makefile b/tests/Makefile index 40fcabe0..16f62e5c 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -123,6 +123,7 @@ run_unittests: $(TESTS) ./test_encode3 1 | ./test_decode3 1 ./test_encode3 1 | protoc --decode=AllTypes -I. -I../generator -I/usr/include alltypes.proto >/dev/null ./test_encode3_buf 1 | ./test_decode3_buf 1 + ./test_decode3 < alltypes_with_extra_fields.pb ./bc_encode | ./bc_decode ./test_missing_fields diff --git a/tests/alltypes_with_extra_fields.pb b/tests/alltypes_with_extra_fields.pb new file mode 100644 index 00000000..f9f53941 Binary files /dev/null and b/tests/alltypes_with_extra_fields.pb differ -- cgit 1.2.3-korg