Adding unit test for skewSymmetric because there's a strange warning elsewhere
parent
0450c58d66
commit
ba8db019da
|
@ -459,6 +459,22 @@ TEST( matrix, scale_rows_mask )
|
|||
EXPECT(assert_equal(actual, expected));
|
||||
}
|
||||
|
||||
/* ************************************************************************* */
|
||||
TEST( matrix, skewSymmetric )
|
||||
{
|
||||
double wx = 1, wy = 2, wz = 3;
|
||||
Matrix3 actual = skewSymmetric(wx,wy,wz);
|
||||
|
||||
Matrix expected(3,3);
|
||||
expected << 0, -3, 2,
|
||||
3, 0, -1,
|
||||
-2, 1, 0;
|
||||
|
||||
EXPECT(assert_equal(actual, expected));
|
||||
|
||||
}
|
||||
|
||||
|
||||
/* ************************************************************************* */
|
||||
TEST( matrix, equal )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue