summaryrefslogtreecommitdiff
path: root/tests/test_table.cc
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_table.cc')
-rw-r--r--tests/test_table.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/test_table.cc b/tests/test_table.cc
index 9cc98b1..c70ef08 100644
--- a/tests/test_table.cc
+++ b/tests/test_table.cc
@@ -62,6 +62,7 @@ void test_strtable(const vector<std::string>& keys, uint32_t num_to_insert) {
upb_strtable_next(&iter)) {
const char *key = upb_strtable_iter_key(&iter);
std::string tmp(key, strlen(key));
+ ASSERT(strlen(key) == upb_strtable_iter_keylength(&iter));
std::set<std::string>::iterator i = all.find(tmp);
ASSERT(i != all.end());
all.erase(i);
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback