![]() |
Lumiera 0.pre.04~rc.1
»edit your freedom«
|
#include "lib/test/test-helper.hpp"
Helper to produce better diagnostic messages when comparing to an expected result string.
This type can be used to mark a std::string in order to invoke a special rigged equality test. The counterpart for equality conversion can be any arbitrary type, on which some kind of string conversion can be performed
Definition at line 328 of file test-helper.hpp.
Public Member Functions | |
| ExpectString (std::string &&s) | |
| ExpectString (std::string const &s) | |
| bool | verify (std::string const &actual) const |
Friends | |
| template<typename X > | |
| bool | operator== (X const &x, ExpectString const &expected) |
| template<typename X > | |
| bool | operator== (ExpectString const &expected, X const &x) |
| ExpectString | operator+ (std::string &&l, ExpectString &&r) |
|
inline |
Definition at line 334 of file test-helper.hpp.
|
inline |
Definition at line 335 of file test-helper.hpp.
| bool verify | ( | std::string const & | actual | ) | const |
check equality and print difference
<iostream> in header Definition at line 80 of file test-helper.cpp.
|
friend |
Definition at line 340 of file test-helper.hpp.
|
friend |
Definition at line 348 of file test-helper.hpp.
|
friend |
Definition at line 355 of file test-helper.hpp.
Inheritance diagram for ExpectString:
Collaboration diagram for ExpectString: