45#include "../tpl_hash.H"
52 cout <<
"Testing tpl_hash.H with new error macros..." <<
endl;
57 cout <<
"Test 1 passed: Normal constructor works" <<
endl;
62 cerr <<
"FAIL: Expected range_error was not thrown" <<
endl;
64 }
catch (
const range_error& e) {
65 string msg = e.what();
68 if (msg.find(
"size mismatch") != string::npos) {
69 cout <<
"Test 2 passed: range_error thrown correctly" <<
endl;
72 cerr <<
"FAIL: Wrong error message: " << msg <<
endl;
size_t size() const noexcept
Count the number of elements of the list.
Main namespace for Aleph-w library functions.
DynList< T > maps(const C &c, Op op)
Classic map operation.