Lumiera  0.pre.03
»edit your freedom«
ExpectString Class Reference

#include "lib/test/test-helper.hpp"

Description

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

See also
format-obj.hpp
Examples:
/Werk/devel/lumi/src/lib/test/test-helper.hpp.

Definition at line 327 of file test-helper.hpp.

Friends

ExpectString operator+ (std::string &&l, ExpectString &&r)
 
template<typename X >
bool operator== (X const &x, ExpectString const &expected)
 
template<typename X >
bool operator== (ExpectString const &expected, X const &x)
 

Private Member Functions

bool verify (std::string const &actual) const
 

Member Function Documentation

◆ verify()

bool verify ( std::string const &  actual) const
private

check equality and print difference

Remarks
defined here to avoid inclusion of <iostream> in header

Definition at line 80 of file test-helper.cpp.

+ Inheritance diagram for ExpectString:
+ Collaboration diagram for ExpectString:

The documentation for this class was generated from the following files: