undo change to test

release/4.3a0
Varun Agrawal 2021-12-29 23:46:20 -05:00 committed by Frank Dellaert
parent 1c76de40d1
commit 573d0d1773
1 changed files with 3 additions and 3 deletions

View File

@ -179,8 +179,8 @@ TEST(DT, example)
enum Label { enum Label {
U, V, X, Y, Z U, V, X, Y, Z
}; };
typedef DecisionTree<Label, int> BDT; typedef DecisionTree<Label, bool> BDT;
int convert(const int& y) { bool convert(const int& y) {
return y != 0; return y != 0;
} }
@ -196,7 +196,7 @@ TEST(DT, conversion)
map<string, Label> ordering; map<string, Label> ordering;
ordering[A] = X; ordering[A] = X;
ordering[B] = Y; ordering[B] = Y;
std::function<int(const int&)> op = convert; std::function<bool(const int&)> op = convert;
BDT f2(f1, ordering, op); BDT f2(f1, ordering, op);
// f1.print("f1"); // f1.print("f1");
// f2.print("f2"); // f2.print("f2");