diff options
author | Josh Haberman <jhaberman@gmail.com> | 2015-06-03 14:52:46 -0700 |
---|---|---|
committer | Josh Haberman <jhaberman@gmail.com> | 2015-06-03 14:52:46 -0700 |
commit | e5bcdc2a3fdc0c38bf09a596efd951d5aaab1148 (patch) | |
tree | 3cbc06765d77bba866efc7623c044491b48f31af /tests/test_table.cc | |
parent | 6f30032183ccd20d7a7f031ebc9350f54179bba8 (diff) | |
parent | 97eeb570225bb2f1060f4eff18ba664e129767d2 (diff) |
Merge branch 'master' into google-internal
Diffstat (limited to 'tests/test_table.cc')
-rw-r--r-- | tests/test_table.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/test_table.cc b/tests/test_table.cc index 2cc5636..13b2330 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); |