add simple test for matrix

This commit is contained in:
chatlanin
2022-03-30 12:49:59 +03:00
parent 2a57555436
commit 393aa844a4
4 changed files with 54 additions and 0 deletions

11
tests/math.cpp Normal file
View File

@@ -0,0 +1,11 @@
#include <gtest/gtest.h>
#include "math/matrix.hpp"
TEST(matrix, check)
{
hack::matrix<int, 2> m { { 0, 0, 1 }, { 0, 1, 1 } };
m[1][1] = 123;
ASSERT_EQ(m.size(), 3);
}