diff --git a/gtsam/discrete/DiscreteFactor.h b/gtsam/discrete/DiscreteFactor.h index 70545a5ca..e30c0a6fe 100644 --- a/gtsam/discrete/DiscreteFactor.h +++ b/gtsam/discrete/DiscreteFactor.h @@ -89,8 +89,10 @@ public: /// @name Wrapper support /// @{ + /// Translation table from values to strings. using Names = std::map>; + /// Translate an integer index value for given key to a string. static std::string Translate(const Names& names, Key key, size_t index); /** diff --git a/gtsam/discrete/tests/testDiscreteBayesNet.cpp b/gtsam/discrete/tests/testDiscreteBayesNet.cpp index de8e05edc..251978c99 100644 --- a/gtsam/discrete/tests/testDiscreteBayesNet.cpp +++ b/gtsam/discrete/tests/testDiscreteBayesNet.cpp @@ -193,7 +193,6 @@ TEST(DiscreteBayesNet, markdown) { "|1|0.7|0.3|\n\n"; auto formatter = [](Key key) { return key == 0 ? "Asia" : "Smoking"; }; string actual = fragment.markdown(formatter); - cout << actual << endl; EXPECT(actual == expected); }