rotgen/test/basic/io.cpp
2025-05-12 10:35:16 +02:00

26 lines
No EOL
707 B
C++

//==================================================================================================
/*
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"
TTS_CASE("Sample test")
{
rotgen::matrix<double,5,5> x;
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);
};