Refactored PDDL tests.

This commit is contained in:
2016-06-08 13:41:17 +02:00
parent 1c8958ad9d
commit ad23c89266
3 changed files with 161 additions and 207 deletions

View File

@@ -45,6 +45,20 @@ Description Description::fromStream(std::istream &istream)
////////////////////////////////////////////////////////////////////////////////////////////////////
Description Description::fromFile(const std::string &path)
{
Description description;
description.m_parser.readFile(path);
description.parseContent();
description.checkConsistency();
return description;
}
////////////////////////////////////////////////////////////////////////////////////////////////////
Description Description::fromFiles(const std::vector<std::string> &paths)
{
BOOST_ASSERT(!paths.empty());