mirror of
https://github.com/orange-cpp/omath.git
synced 2026-02-13 07:03:25 +00:00
added to_string method to matrix
This commit is contained in:
@@ -4,6 +4,6 @@ project(unit-tests)
|
||||
|
||||
file(GLOB TEST_SRC_FILES ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
include(GoogleTest)
|
||||
add_executable(unit-tests UnitTestColor.cpp)
|
||||
add_executable(unit-tests UnitTestColor.cpp UnitTestMatrix.cpp)
|
||||
|
||||
target_link_libraries(unit-tests PRIVATE gtest gtest_main uml)
|
||||
15
tests/UnitTestMatrix.cpp
Normal file
15
tests/UnitTestMatrix.cpp
Normal file
@@ -0,0 +1,15 @@
|
||||
//
|
||||
// Created by vlad on 5/18/2024.
|
||||
//
|
||||
#include <gtest/gtest.h>
|
||||
#include <uml/matrix.h>
|
||||
#include <print>
|
||||
TEST(UnitTestMatrix, ToString)
|
||||
{
|
||||
uml::matrix matrix(2, 2);
|
||||
matrix.set(1.1);
|
||||
const auto str = matrix.to_string();
|
||||
|
||||
std::cout << str;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user