diff options
Diffstat (limited to 'tests/cxx/hashmap/driver.cxx')
-rw-r--r-- | tests/cxx/hashmap/driver.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/cxx/hashmap/driver.cxx b/tests/cxx/hashmap/driver.cxx index 99c773f..b8e2195 100644 --- a/tests/cxx/hashmap/driver.cxx +++ b/tests/cxx/hashmap/driver.cxx @@ -89,10 +89,14 @@ main () // Test iteration // + unsigned int n = 0; + for (hashmap::const_iterator i = h.begin (); i != h.end (); ++i) { const void* p = *i; - cout << "'" << *static_cast<const char* const*> (p) << "'" << endl; + n += *static_cast<const char* const*> (p) [0]; } + + assert (n == '1' + '2' + '3' + '4' + '5' + '6' + '7' + '8' + '9'); } } |