doc correction
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user