Skip to content

Commit

Permalink
Test findVars
Browse files Browse the repository at this point in the history
  • Loading branch information
Hussien-Abdo committed Dec 11, 2020
1 parent 175388c commit ff6850d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/test/Tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -143,4 +143,13 @@ namespace {
m.findNodes(f,nodes_of_root);
EXPECT_EQ(nodes_of_root.size(),3);
}
TEST_F(ManagerTest, findVarsTest){
SetUp(4);
std::set<BDD_ID> vars_of_root;
BDD_ID or2 = m.or2(var1, var2);
BDD_ID and2 = m.and2(var3, var4);
BDD_ID f = m.and2(or2, and2);
m.findVars(f,vars_of_root);
EXPECT_EQ(vars_of_root.size(),4);
}
}

0 comments on commit ff6850d

Please sign in to comment.