WIP: more test coverage.

This commit is contained in:
Matthias Koefferlein 2018-09-23 00:37:27 +02:00
parent 76b045e2ac
commit 2595f4ed6b
2 changed files with 18 additions and 0 deletions

BIN
src/plugins/tools/netx/testdata/hlp4.oas vendored Normal file

Binary file not shown.

View File

@ -103,30 +103,48 @@ void run_test_bool (tl::TestBase *_this, const char *file, TestMode mode, int ou
TEST(BasicAnd1)
{
// Simple flat AND
run_test_bool (_this, "hlp1.oas", TMAnd, 100);
}
TEST(BasicNot1)
{
// Simple flat NOT
run_test_bool (_this, "hlp1.oas", TMNot, 101);
}
TEST(BasicAnd2)
{
// Up/down and down/up interactions, AND
run_test_bool (_this, "hlp2.oas", TMAnd, 100);
}
TEST(BasicNot2)
{
// Up/down and down/up interactions, NOT
run_test_bool (_this, "hlp2.oas", TMNot, 101);
}
TEST(BasicAnd3)
{
// Variant building, AND
run_test_bool (_this, "hlp3.oas", TMAnd, 100);
}
TEST(BasicNot3)
{
// Variant building, NOT
run_test_bool (_this, "hlp3.oas", TMNot, 101);
}
TEST(BasicAnd4)
{
// Sibling interactions, variant building, AND
run_test_bool (_this, "hlp4.oas", TMAnd, 100);
}
TEST(BasicNot4)
{
// Sibling interactions, variant building, NOT
run_test_bool (_this, "hlp4.oas", TMNot, 101);
}