Improve the person_with_extra_field test.
Added a field after the extra field to verify it's also ok.
This commit is contained in:
@@ -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_encode2 | protoc --decode=Person -I. -I../generator -I/usr/include person.proto`" ]
|
||||||
|
|
||||||
[ "`./test_decode2 < person_with_extra_field.pb`" = \
|
[ "`./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 | ./test_decode_callbacks`" = \
|
||||||
"`./test_encode_callbacks | protoc --decode=TestMessage callbacks.proto`" ]
|
"`./test_encode_callbacks | protoc --decode=TestMessage callbacks.proto`" ]
|
||||||
|
|||||||
Binary file not shown.
@@ -1,3 +0,0 @@
|
|||||||
name: "Test Person 99"
|
|
||||||
id: 99
|
|
||||||
email: "test@person.com"
|
|
||||||
Reference in New Issue
Block a user