doc correction

This commit is contained in:
Шишов Максим Денисович
2020-09-08 16:05:22 +03:00
committed by Gama
parent 42793522a4
commit d59d60b1a7
2 changed files with 417 additions and 698 deletions

View File

@@ -17,6 +17,7 @@ bool cmpSquareMatrixWithValue(PIMathMatrixT<rows, cols, double> matrix, Type val
return b;
}
<<<<<<< HEAD
TEST(PIMathMatrixT_Test, identity) {
auto matrix = PIMathMatrixT<rows, cols, double>::identity();
for(int i = 0; i < 3; i++){
@@ -33,6 +34,26 @@ TEST(PIMathMatrixT_Test, identity) {
}
}
}
=======
TEST(PIMathMatrixT_Test, identity)
{
auto matrix = PIMathMatrixT<rows, cols, double>::identity();
for(int i = 0; i < 3; i++){
if(matrix[i][i] != 1.0){
ASSERT_TRUE(false);
}
}
for(int i = 0; i < 3; i++){
for(int j = 0; j < 3; j++){
if(i != j){
if(matrix[i][j] != 0.0){
ASSERT_TRUE(false);
}
}
}
}
>>>>>>> 05a32cc... doc correction
ASSERT_TRUE(true);
}