Adding unit test for skewSymmetric because there's a strange warning elsewhere

release/4.3a0
cbeall3 2014-05-06 11:56:47 -04:00
parent 0450c58d66
commit ba8db019da
1 changed files with 16 additions and 0 deletions

View File

@ -459,6 +459,22 @@ TEST( matrix, scale_rows_mask )
EXPECT(assert_equal(actual, expected)); 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 ) TEST( matrix, equal )
{ {