add ctors without initialization

This commit is contained in:
BlackMATov
2021-02-25 00:05:51 +07:00
parent 2ef015d148
commit 81e7a0996f
8 changed files with 158 additions and 131 deletions

View File

@@ -40,6 +40,22 @@ TEST_CASE("vmath/vec") {
}
SUBCASE("ctors") {
{
vec<int, 2> i2;
CHECK(i2.x == 0);
CHECK(i2.y == 0);
vec<int, 3> i3;
CHECK(i3.x == 0);
CHECK(i3.y == 0);
CHECK(i3.z == 0);
vec<int, 4> i4;
CHECK(i4.x == 0);
CHECK(i4.y == 0);
CHECK(i4.z == 0);
CHECK(i4.w == 0);
}
{
STATIC_CHECK(int2().x == 0);
STATIC_CHECK(int2().y == 0);