#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.
    9{
   10  std::stringstream ss;
   12  if(ss.str() == expected)
   13    {
   14      std::cout << "PASS: " << test_name << "\n";
   15    }
   16  else
   17    {
   18      std::cout << "FAIL: " << test_name << ": " << ss.str()
   19                << "!=" << expected << "\n";
   20    }
   21}
constexpr double t
plate stiffness