Address comments
parent
8c3d512629
commit
9d6f9f647a
|
@ -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);
|
||||
|
||||
/**
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue