10 using namespace gtsam;
16 if (table1.size() != table2.size()) {
19 for (
size_t i = 0;
i < table1.size(); ++
i) {
20 if (table1[
i].
size() != table2[
i].size()) {
23 for (
size_t j = 0;
j < table1[
i].size(); ++
j) {
24 if (table1[
i][
j] != table2[
i][
j]) {
34 TEST(SimpleParser, Simple) {
44 TEST(SimpleParser, ThreeElements) {
54 TEST(SimpleParser, TAndF) {
74 TEST(SimpleParser, emptyString) {
81 TEST(SimpleParser, Gibberish) {
87 TEST(SimpleParser, GibberishInMiddle) {
93 TEST(SimpleParser, SlashInEnd) {
Provides additional testing facilities for common data structures.
static int runAllTests(TestResult &result)
Parser for conditional distribution signatures.
static std::optional< Table > Parse(const std::string &str)
#define EXPECT(condition)
TEST(SmartFactorBase, Pinhole)
bool compareTables(const SignatureParser::Table &table1, const SignatureParser::Table &table2)