Replicated test cases for former issues in PDDL parsing library.
This commit is contained in:
parent
c35faab104
commit
799c9ce2fb
@ -16,6 +16,27 @@ TEST_CASE("[PDDL parser issues] Check past issues", "[PDDL parser issues]")
|
||||
pddl::Tokenizer tokenizer;
|
||||
pddl::Context context(std::move(tokenizer), ignoreWarnings);
|
||||
|
||||
SECTION("white space issues with constants and parsing unsupported sections")
|
||||
{
|
||||
const auto domainFile = fs::path("data") / "issues" / "issue-1.pddl";
|
||||
context.tokenizer.read(domainFile);
|
||||
CHECK_NOTHROW(pddl::parseDescription(context));
|
||||
}
|
||||
|
||||
SECTION("white space issues with empty n-ary predicates")
|
||||
{
|
||||
const auto domainFile = fs::path("data") / "issues" / "issue-2.pddl";
|
||||
context.tokenizer.read(domainFile);
|
||||
CHECK_NOTHROW(pddl::parseDescription(context));
|
||||
}
|
||||
|
||||
SECTION("comments are correctly ignored")
|
||||
{
|
||||
const auto domainFile = fs::path("data") / "issues" / "issue-3.pddl";
|
||||
context.tokenizer.read(domainFile);
|
||||
CHECK_NOTHROW(pddl::parseDescription(context));
|
||||
}
|
||||
|
||||
// Check that no infinite loop occurs
|
||||
SECTION("“either” in typing section")
|
||||
{
|
||||
|
Reference in New Issue
Block a user