Improved output format and highlighting.
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
#include <plasp/utils/IO.h>
|
||||
#include <plasp/utils/Parser.h>
|
||||
#include <plasp/utils/ParserException.h>
|
||||
|
||||
@@ -331,17 +330,3 @@ TEST(UtilsTests, ParserRemoveComments)
|
||||
|
||||
ASSERT_TRUE(p3.atEnd());
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
TEST(UtilsTests, EscapeASP)
|
||||
{
|
||||
const std::string predicate = "action(stack_on(block-1, block-2, value@3, value@4))";
|
||||
|
||||
const auto escaped = plasp::utils::escapeASP(predicate);
|
||||
const auto unescaped = plasp::utils::unescapeASP(escaped);
|
||||
|
||||
ASSERT_EQ(escaped.find("-"), std::string::npos);
|
||||
ASSERT_EQ(escaped.find("@"), std::string::npos);
|
||||
ASSERT_EQ(predicate, unescaped);
|
||||
}
|
||||
|
Reference in New Issue
Block a user