Address comments

release/4.3a0
Frank Dellaert 2022-01-03 11:13:32 -05:00
parent 8c3d512629
commit 9d6f9f647a
2 changed files with 2 additions and 1 deletions

View File

@ -89,8 +89,10 @@ public:
/// @name Wrapper support
/// @{
/// Translation table from values to strings.
using Names = std::map<Key, std::vector<std::string>>;
/// Translate an integer index value for given key to a string.
static std::string Translate(const Names& names, Key key, size_t index);
/**

View File

@ -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);
}