USe TTS for test harness
This commit is contained in:
parent
3caf08e4c1
commit
5f1d070547
3 changed files with 1944 additions and 5 deletions
|
|
@ -1,8 +1,26 @@
|
|||
#include <iostream>
|
||||
//==================================================================================================
|
||||
/*
|
||||
ROTGEN - Runtime Overlay for Eigen
|
||||
Copyright : CODE RECKONS
|
||||
SPDX-License-Identifier: BSL-1.0
|
||||
*/
|
||||
//==================================================================================================
|
||||
#define TTS_MAIN
|
||||
#include <rotgen/matrix.hpp>
|
||||
#include <sstream>
|
||||
#include "tts.hpp"
|
||||
|
||||
int main()
|
||||
TTS_CASE("Sample test")
|
||||
{
|
||||
rotgen::matrix<double,5,5> x;
|
||||
std::cout << x << "\n";
|
||||
}
|
||||
std::ostringstream os;
|
||||
os << x;
|
||||
|
||||
std::string ref = "0 0 0 0 0\n"
|
||||
"0 0 0 0 0\n"
|
||||
"0 0 0 0 0\n"
|
||||
"0 0 0 0 0\n"
|
||||
"0 0 0 0 0";
|
||||
|
||||
TTS_EQUAL(os.str(), ref);
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue