Open alexey-malov opened 4 years ago
2>------ Build started: Project: unit_tests_for_task_1.2, Configuration: Debug Win32 ------
2>CVector3D.cpp
2>The contents of <execution> are available only with C++17 or later.
1>CVector3D.cpp
1>The contents of <execution> are available only with C++17 or later.
2>unit_tests.cpp
1>main.cpp
1>The contents of <execution> are available only with C++17 or later.
2>The contents of <execution> are available only with C++17 or later.
<execution>
?TEST_CASE("Vector assignment addition")
{
CVector3D x(1, 0, 0);
CVector3D y(1, 0, 0);
(x += y) += y;
CHECK(x == CVector3D(3, 0, 0));
}
TEST_CASE("Vector normalization")
{
CVector3D v(0, 5, 0);
v.Normalize();
CHECK(v == CVector3D(0, 1, 0));
}