Enabled test case again by exchanging unsupported input file.

This commit is contained in:
Patrick Lühne 2017-06-24 21:44:00 +02:00
parent ca02b8ce62
commit 6e858ff52f
Signed by: patrick
GPG Key ID: 05F3611E97A70ABF

View File

@ -186,17 +186,17 @@ TEST_CASE("[PDDL instances] The official PDDL instances are parsed correctly", "
CHECK(goal2->arguments[1].get<pddl::ast::ConstantPointer>()->declaration->type.value().get<pddl::ast::PrimitiveTypePointer>()->declaration == typeBlock.get()); CHECK(goal2->arguments[1].get<pddl::ast::ConstantPointer>()->declaration->type.value().get<pddl::ast::PrimitiveTypePointer>()->declaration == typeBlock.get());
} }
/*SECTION("“either” type in zenotravel domain") SECTION("“either” type in zenotravel domain")
{ {
context.mode = pddl::Mode::Compatibility; context.mode = pddl::Mode::Compatibility;
const auto domainFile = pddlInstanceBasePath / "ipc-2002" / "domains" / "zenotravel-numeric-hand-coded" / "domain.pddl"; const auto domainFile = pddlInstanceBasePath / "ipc-2002" / "domains" / "zenotravel-strips-hand-coded" / "domain.pddl";
context.tokenizer.read(domainFile); context.tokenizer.read(domainFile);
auto description = pddl::parseDescription(context); auto description = pddl::parseDescription(context);
const auto &predicates = description.domain->predicates; const auto &predicates = description.domain->predicates;
REQUIRE(predicates.size() == 2); REQUIRE(predicates.size() == 4);
REQUIRE(predicates[0]->name == "at"); REQUIRE(predicates[0]->name == "at");
REQUIRE(predicates[0]->parameters.size() == 2); REQUIRE(predicates[0]->parameters.size() == 2);
REQUIRE(predicates[0]->parameters[0]->name == "x"); REQUIRE(predicates[0]->parameters[0]->name == "x");
@ -206,7 +206,7 @@ TEST_CASE("[PDDL instances] The official PDDL instances are parsed correctly", "
REQUIRE(predicates[0]->parameters[1]->name == "c"); REQUIRE(predicates[0]->parameters[1]->name == "c");
REQUIRE(predicates[0]->parameters[1]->type); REQUIRE(predicates[0]->parameters[1]->type);
CHECK(predicates[0]->parameters[1]->type.value().get<pddl::ast::PrimitiveTypePointer>()->declaration->name == "city"); CHECK(predicates[0]->parameters[1]->type.value().get<pddl::ast::PrimitiveTypePointer>()->declaration->name == "city");
}*/ }
SECTION("typed constants in schedule domain") SECTION("typed constants in schedule domain")
{ {