Improve the person_with_extra_field test.
authorPetteri Aimonen <jpa@git.mail.kapsi.fi>
Sun, 21 Oct 2012 18:31:20 +0000 (21:31 +0300)
committerPetteri Aimonen <jpa@git.mail.kapsi.fi>
Sun, 21 Oct 2012 18:31:20 +0000 (21:31 +0300)
Added a field after the extra field to verify it's also ok.

tests/Makefile
tests/person_with_extra_field.pb
tests/person_with_extra_field.txt [deleted file]

index 73efbe6..7656175 100644 (file)
@@ -71,7 +71,7 @@ run_unittests: decode_unittests encode_unittests test_cxxcompile test_encode1 te
        "`./test_encode2 | protoc --decode=Person -I. -I../generator -I/usr/include person.proto`" ]
        
        [ "`./test_decode2 < person_with_extra_field.pb`" = \
-       "`cat person_with_extra_field.txt`" ]
+       "`./test_encode2 | ./test_decode2`" ]
        
        [ "`./test_encode_callbacks | ./test_decode_callbacks`" = \
        "`./test_encode_callbacks | protoc --decode=TestMessage callbacks.proto`" ]
index 00d153c..ced3057 100644 (file)
Binary files a/tests/person_with_extra_field.pb and b/tests/person_with_extra_field.pb differ
diff --git a/tests/person_with_extra_field.txt b/tests/person_with_extra_field.txt
deleted file mode 100644 (file)
index fae9f87..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-name: "Test Person 99"
-id: 99
-email: "test@person.com"