Made unsupported expressions a separate type for disambiguation to fix issues with unsupported features.
This commit is contained in:
21
tests/TestPDDLTranslation.cpp
Normal file
21
tests/TestPDDLTranslation.cpp
Normal file
@@ -0,0 +1,21 @@
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
#include <boost/iostreams/stream.hpp>
|
||||
#include <boost/iostreams/device/null.hpp>
|
||||
|
||||
#include <plasp/pddl/Description.h>
|
||||
#include <plasp/pddl/TranslatorASP.h>
|
||||
|
||||
using namespace plasp::pddl;
|
||||
|
||||
boost::iostreams::stream<boost::iostreams::null_sink> nullStream((boost::iostreams::null_sink()));
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
TEST(PDDLTranslationTests, CheckIssues)
|
||||
{
|
||||
// Check that translating domains without typing information works
|
||||
const auto description = Description::fromFile("data/issues/issue-4.pddl");
|
||||
const auto translator = TranslatorASP(description, nullStream);
|
||||
ASSERT_NO_THROW(translator.translate());
|
||||
}
|
Reference in New Issue
Block a user