summaryrefslogtreecommitdiff
path: root/tests/test_vs_proto2.cc
diff options
context:
space:
mode:
authorJoshua Haberman <joshua@reverberate.org>2011-02-06 08:21:47 -0800
committerJoshua Haberman <joshua@reverberate.org>2011-02-06 08:21:47 -0800
commit4667ed4be921b2142321e47c8ccc6a35a9189277 (patch)
tree416d9bf9cffa3b9abc99f7f69a68e84df8f0a203 /tests/test_vs_proto2.cc
parent806ba1c80d86bd59759cf59efc057662eecbcf65 (diff)
All tests pass again, valgrind-clean! Next up: benchmarks.
Diffstat (limited to 'tests/test_vs_proto2.cc')
-rw-r--r--tests/test_vs_proto2.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/test_vs_proto2.cc b/tests/test_vs_proto2.cc
index 9633420..749eedf 100644
--- a/tests/test_vs_proto2.cc
+++ b/tests/test_vs_proto2.cc
@@ -27,6 +27,7 @@ void compare_arrays(const google::protobuf::Reflection *r,
upb_msg *upb_msg, upb_fielddef *upb_f)
{
ASSERT(upb_msg_has(upb_msg, upb_f));
+ ASSERT(upb_isarray(upb_f));
upb_array *arr = upb_value_getarr(upb_msg_get(upb_msg, upb_f));
ASSERT(upb_array_len(arr) == (upb_arraylen_t)r->FieldSize(proto2_msg, proto2_f));
for(upb_arraylen_t i = 0; i < upb_array_len(arr); i++) {
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback