Replicated white space test case in new PDDL parsing library.
This commit is contained in:
parent
c6c36273b5
commit
40b43217fc
@ -44,4 +44,12 @@ TEST_CASE("[PDDL parser] Check past issues", "[PDDL parser]")
|
||||
CHECK(types[4]->parentTypes[1]->declaration == types[2].get());
|
||||
CHECK(types[4]->parentTypes[2]->declaration == types[3].get());
|
||||
}
|
||||
|
||||
// Check that whitespace is handled appropriately
|
||||
SECTION("“either” in typing section")
|
||||
{
|
||||
const auto domainFile = fs::path("data") / "test-cases" / "white-space.pddl";
|
||||
context.tokenizer.read(domainFile);
|
||||
CHECK_NOTHROW(pddl::parseDescription(context));
|
||||
}
|
||||
}
|
||||
|
@ -357,7 +357,7 @@ TEST_CASE("[PDDL parser] White spaces are ignored", "[PDDL parser]")
|
||||
plasp::output::Logger logger;
|
||||
Context context(Tokenizer(), logger);
|
||||
|
||||
CHECK_NOTHROW(Description::fromFile("data/white-space-test.pddl", context));
|
||||
CHECK_NOTHROW(Description::fromFile("data/test-cases/white-space.pddl", context));
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
Reference in New Issue
Block a user