52 "HashSet default backend must remain OLhashTable");
54 "HashMap default backend must remain MapOLhash");
58 cout <<
"Testing tpl_hash.H with new error macros..." << endl;
62 assert(map1.size() == 3);
63 cout <<
"Test 1 passed: Normal constructor works" << endl;
68 cerr <<
"FAIL: Expected range_error was not thrown" << endl;
70 }
catch (
const range_error& e) {
71 string msg = e.what();
74 if (msg.find(
"size mismatch") != string::npos) {
75 cout <<
"Test 2 passed: range_error thrown correctly" << endl;
76 cout <<
" Message: " << msg << endl;
78 cerr <<
"FAIL: Wrong error message: " << msg << endl;
83 cout << endl <<
"SUCCESS: All tests passed!" << endl;
size_t size_t int32_t value
Main namespace for Aleph-w library functions.
Unified hash table interface.