22 lines
711 B
C++
22 lines
711 B
C++
#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());
|
|
}
|