24 #include <boost/assign/std/list.hpp> 30 using namespace gtsam;
54 const auto dz1 = DZ(1);
55 const auto ddz1 = DDZ(1);
74 return 0x6100000000000005;
87 Key key = KeyTestValue<sizeof(Key)>();
98 EXPECT(Symbol::ChrTest(
'c')(key));
99 EXPECT(!Symbol::ChrTest(
'd')(key));
120 EXPECT(
"special" == ss2.str());
125 EXPECT(
"c3" == ss3.str());
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)
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
bool assert_equal(const Matrix &expected, const Matrix &actual, double tol)
#define EXPECT_LONGS_EQUAL(expected, actual)
std::uint64_t Key
Integer nonlinear key type.