mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Add BEAST_EXPECT macro:
This macro is used in the unit test framework to assist in reporting the file and line number of test failures.
This commit is contained in:
@@ -20,13 +20,13 @@ public:
|
||||
void check(char const* name, parse_error ev)
|
||||
{
|
||||
auto const ec = make_error_code(ev);
|
||||
expect(std::string{ec.category().name()} == name);
|
||||
expect(! ec.message().empty());
|
||||
expect(std::addressof(ec.category()) ==
|
||||
BEAST_EXPECT(std::string{ec.category().name()} == name);
|
||||
BEAST_EXPECT(! ec.message().empty());
|
||||
BEAST_EXPECT(std::addressof(ec.category()) ==
|
||||
std::addressof(get_parse_error_category()));
|
||||
expect(get_parse_error_category().equivalent(static_cast<int>(ev),
|
||||
BEAST_EXPECT(get_parse_error_category().equivalent(static_cast<int>(ev),
|
||||
ec.category().default_error_condition(static_cast<int>(ev))));
|
||||
expect(get_parse_error_category().equivalent(
|
||||
BEAST_EXPECT(get_parse_error_category().equivalent(
|
||||
ec, static_cast<int>(ev)));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user