patrick
/
plasp
Archived
1
0
Fork 0

Replicated white space test case in new PDDL parsing library.

This commit is contained in:
Patrick Lühne 2017-06-19 00:35:31 +02:00
parent c6c36273b5
commit 40b43217fc
Signed by: patrick
GPG Key ID: 05F3611E97A70ABF
3 changed files with 9 additions and 1 deletions

View File

@ -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));
}
}

View File

@ -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));
}
////////////////////////////////////////////////////////////////////////////////////////////////////