diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_table.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_table.cc b/tests/test_table.cc index 9cc98b1..30c5c94 100644 --- a/tests/test_table.cc +++ b/tests/test_table.cc @@ -62,6 +62,8 @@ 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)); + std::string tmp2(key, upb_strtable_iter_keylength(&iter)); + ASSERT(tmp == tmp2); std::set<std::string>::iterator i = all.find(tmp); ASSERT(i != all.end()); all.erase(i); |