aboutsummaryrefslogtreecommitdiff
path: root/tests/cxx/hashmap/driver.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2009-10-20 16:56:25 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2009-10-20 16:56:25 +0200
commit6ba682b661fb698e6d8af61e44d527aed0922b1d (patch)
treec331ecaf915a9d39e2cd789ce754c6953661d08c /tests/cxx/hashmap/driver.cxx
parentb135374d5e40df21871b3e0c9efc69ba2d8361cb (diff)
Make the test architecture width-independent
Diffstat (limited to 'tests/cxx/hashmap/driver.cxx')
-rw-r--r--tests/cxx/hashmap/driver.cxx6
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');
}
}