From bffd3a9accd748f20ad4a2d75942893684b90d81 Mon Sep 17 00:00:00 2001
From: Petteri Aimonen <jpa@git.mail.kapsi.fi>
Date: Sun, 21 Oct 2012 21:31:20 +0300
Subject: [PATCH] Improve the person_with_extra_field test.

Added a field after the extra field to verify it's also ok.
---
 tests/Makefile                    |   2 +-
 tests/person_with_extra_field.pb  | Bin 90 -> 90 bytes
 tests/person_with_extra_field.txt |   3 ---
 3 files changed, 1 insertion(+), 4 deletions(-)
 delete mode 100644 tests/person_with_extra_field.txt

diff --git a/tests/Makefile b/tests/Makefile
index 73efbe6..7656175 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -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`" ]
diff --git a/tests/person_with_extra_field.pb b/tests/person_with_extra_field.pb
index 00d153cb614d88827dedcb455e9014d62ea3c929..ced3057c529a7ab299fb57b7a72ce54fd7ab2f95 100644
GIT binary patch
delta 52
zcma!wnxL(}h(Umh$JEqR*U-q=#MI2(LV#fr11A@|rKK)Vz-SQzFBd0BN*6501OOSJ
B39<kH

delta 52
zcma!wnxL&eiCKV)$JEqR*U-q=#MI2(LV#fsGbb0jrKK)Vz-SUPFBd0BN*6501OOEH
B35x&#

diff --git a/tests/person_with_extra_field.txt b/tests/person_with_extra_field.txt
deleted file mode 100644
index fae9f87..0000000
--- a/tests/person_with_extra_field.txt
+++ /dev/null
@@ -1,3 +0,0 @@
-name: "Test Person 99"
-id: 99
-email: "test@person.com"
-- 
2.16.6