PIMathVector Tests bug fix

This commit is contained in:
2020-10-08 11:16:05 +03:00
parent d6637047b2
commit 9b02325ba1
3 changed files with 10 additions and 10 deletions

View File

@@ -230,7 +230,6 @@ TEST(PIMathVectorT_Test, at) {
ASSERT_TRUE(false);
}
}
ASSERT_TRUE(true);
}
TEST(PIMathVectorT_Test, operator_AssignmentValue) {
@@ -406,7 +405,10 @@ TEST(PIMathVectorT_Test, operator_MultiplicationVector2) {
PIMathVectorT<SIZE,double> vector2;
vector1[0] = a;
vector2[1] = a;
ASSERT_TRUE(((vector1 * vector2)[0] < double(1E-200)) && ((vector1 * vector2)[1] < double(1E-200)) && ((vector1 * vector2)[2] - a < double(1E-200)));
auto vect = vector1 * vector2;
ASSERT_TRUE(vect[0] < double(1E-200));
ASSERT_TRUE(vect[1] < double(1E-200));
ASSERT_TRUE(vect[2] - a < double(1E-200));
}
TEST(PIMathVectorT_Test, operator_DivisionVal) {
@@ -458,7 +460,6 @@ TEST(PIMathVectorT_Test, transposed) {
ASSERT_TRUE(false);
}
}
ASSERT_TRUE(true);
}
TEST(PIMathVectorT_Test, filled) {