Added official PDDL competition instances for automated testing.

This commit is contained in:
Patrick Lühne 2017-06-15 18:10:28 +02:00
parent a7c4fdb242
commit 0b8da69394
Signed by: patrick
GPG Key ID: 05F3611E97A70ABF
3 changed files with 9 additions and 0 deletions

3
.gitmodules vendored
View File

@ -4,3 +4,6 @@
[submodule "lib/variant"]
path = lib/variant
url = https://github.com/mapbox/variant
[submodule "tests/data/pddl-instances"]
path = tests/data/pddl-instances
url = https://github.com/potassco/pddl-instances.git

View File

@ -7,6 +7,7 @@
////////////////////////////////////////////////////////////////////////////////////////////////////
// TODO: reimplement unit tests
int main()
{
const pddl::Context::WarningCallback ignoreWarnings = [](const auto &, const auto &){};
@ -19,4 +20,8 @@ int main()
const auto description = pddl::parseDescription(context);
std::cout << description.domain->requirements.size() << std::endl;
std::cout << description.domain->predicates.size() << std::endl;
std::cout << description.domain->actions.size() << std::endl;
std::cout << description.problem.value()->name << std::endl;
std::cout << description.problem.value()->objects.size() << std::endl;
}

@ -0,0 +1 @@
Subproject commit bf7062de90321c8a2e3f898f1a4c4e4b0b1d1515