test new key() method

release/4.3a0
Frank Dellaert 2012-05-22 17:58:50 +00:00
parent 9394ede66b
commit 382e3311fd
1 changed files with 4 additions and 4 deletions

View File

@ -27,11 +27,11 @@ using namespace gtsam;
/* ************************************************************************* */
TEST(Key, KeySymbolConversion) {
Symbol expected('j', 4);
Key key(expected);
Symbol original('j', 4);
Key key(original);
EXPECT(assert_equal(key, original.key()))
Symbol actual(key);
EXPECT(assert_equal(expected, actual))
EXPECT(assert_equal(original, actual))
}
/* ************************************************************************* */