#include <iostream>
#include <sstream>
Go to the source code of this file.
|
template<class T > |
void | test_ostream (const T &t, const std::string &expected, const std::string &test_name) |
|
◆ test_ostream()
template<class T >
void test_ostream |
( |
const T & |
t, |
|
|
const std::string & |
expected, |
|
|
const std::string & |
test_name |
|
) |
| |
Definition at line 7 of file test_ostream.hpp.
12 if(ss.str() == expected)
14 std::cout <<
"PASS: " << test_name <<
"\n";
18 std::cout <<
"FAIL: " << test_name <<
": " << ss.str()
19 <<
"!=" << expected <<
"\n";