PIMathVector Tests bug fix
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user