operator! for vector and matrix, relational functions with scalars

This commit is contained in:
BlackMATov
2020-12-07 02:26:58 +07:00
parent 942e074c63
commit 12e738978a
5 changed files with 233 additions and 25 deletions

View File

@@ -59,6 +59,7 @@ TEST_CASE("vmath/mat_fun") {
SUBCASE("operators") {
STATIC_REQUIRE(-int2x2(1,2,3,4) == int2x2(-1,-2,-3,-4));
STATIC_REQUIRE(!int2x2(-1,0,1,2) == bool2x2(false,true,false,false));
STATIC_REQUIRE(int2x2(1,2,3,4) + 2 == int2x2(3,4,5,6));
STATIC_REQUIRE(int2x2(1,2,3,4) - 2 == int2x2(-1,0,1,2));