Changeset View
Changeset View
Standalone View
Standalone View
src/test/dbwrapper_tests.cpp
Show First 20 Lines • Show All 242 Lines • ▼ Show 20 Lines | for (int seek_start : {0x00, 0x80}) { | ||||
BOOST_CHECK_EQUAL(value, x * x); | BOOST_CHECK_EQUAL(value, x * x); | ||||
it->Next(); | it->Next(); | ||||
} | } | ||||
BOOST_CHECK(!it->Valid()); | BOOST_CHECK(!it->Valid()); | ||||
} | } | ||||
} | } | ||||
struct StringContentsSerializer { | struct StringContentsSerializer { | ||||
// Used to make two serialized objects the same while letting them have a | // Used to make two serialized objects the same while letting them have | ||||
// different lengths. This is a terrible idea. | // different lengths. This is a terrible idea. | ||||
std::string str; | std::string str; | ||||
StringContentsSerializer() {} | StringContentsSerializer() {} | ||||
explicit StringContentsSerializer(const std::string &inp) : str(inp) {} | explicit StringContentsSerializer(const std::string &inp) : str(inp) {} | ||||
StringContentsSerializer &operator+=(const std::string &s) { | StringContentsSerializer &operator+=(const std::string &s) { | ||||
str += s; | str += s; | ||||
return *this; | return *this; | ||||
▲ Show 20 Lines • Show All 73 Lines • Show Last 20 Lines |