Add test case for extra fields in AllTypes
authorPetteri Aimonen <jpa@git.mail.kapsi.fi>
Tue, 16 Jul 2013 08:07:34 +0000 (11:07 +0300)
committerPetteri Aimonen <jpa@git.mail.kapsi.fi>
Tue, 16 Jul 2013 08:07:34 +0000 (11:07 +0300)
tests/Makefile
tests/alltypes_with_extra_fields.pb [new file with mode: 0644]

index 40fcabe..16f62e5 100644 (file)
@@ -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 (file)
index 0000000..f9f5394
Binary files /dev/null and b/tests/alltypes_with_extra_fields.pb differ