27 using namespace gtsam;
51 const auto dz1 = DZ(1);
52 const auto ddz1 = DDZ(1);
71 return 0x6100000000000005;
84 Key key = KeyTestValue<sizeof(Key)>();
95 EXPECT(Symbol::ChrTest(
'c')(key));
96 EXPECT(!Symbol::ChrTest(
'd')(key));
117 EXPECT(
"special" == ss2.str());
122 EXPECT(
"c3" == ss3.str());
const gtsam::Symbol key('X', 0)
Provides additional testing facilities for common data structures.
Concept check for values that can be used in unit tests.
static int runAllTests(TestResult &result)
string keyMyFormatter(Key key)
bool assert_equal(const Matrix &expected, const Matrix &actual, double tol)
static const KeyFormatter DefaultKeyFormatter
TEST(Key, KeySymbolConversion)
#define EXPECT(condition)
To use the key_formatter on Keys, they must be wrapped in a StreamedKey.
Key symbol(unsigned char c, std::uint64_t j)
static std::stringstream ss
#define EXPECT_LONGS_EQUAL(expected, actual)
std::uint64_t Key
Integer nonlinear key type.