// Custom includes
#include <sstream>
-#include "Parse.hh"
+#include "Console.hh"
#include "Parse.ih"
#include <senf/Utils/String.hh>
};
}
-BOOST_AUTO_UNIT_TEST(commandGrammar)
+SENF_AUTO_UNIT_TEST(commandGrammar)
{
senf::console::detail::CommandGrammar<TestParseDispatcher>::Context context;
std::stringstream ss;
{
static char text[] =
"# Comment\n"
- "doo / bii / doo arg"
+ "doo / bii / // doo arg"
" flab::blub"
" 123.434>a"
" (a,b;c (huhu/{haha}))"
{
ss.str("");
BOOST_CHECK( boost::spirit::parse(
- "ls /foo/bar;",
+ "ls //foo/bar;",
grammar.use_parser<Grammar::CommandParser>(),
grammar.use_parser<Grammar::SkipParser>() ) . full );
BOOST_CHECK_EQUAL( ss.str(), "builtin_ls( None('')/Word('foo')/Word('bar') )\n" );
{
ss.str("");
BOOST_CHECK( boost::spirit::parse(
- "foo/bar/ {",
+ "foo/bar// {",
grammar.use_parser<Grammar::CommandParser>(),
grammar.use_parser<Grammar::SkipParser>() ) . full );
BOOST_CHECK_EQUAL( ss.str(),
{ commands.push_back(i); }
}
-BOOST_AUTO_UNIT_TEST(commandParser)
+SENF_AUTO_UNIT_TEST(commandParser)
{
senf::console::CommandParser parser;
}
}
-BOOST_AUTO_UNIT_TEST(checkedArgumentIterator)
+SENF_AUTO_UNIT_TEST(checkedArgumentIterator)
{
senf::console::CommandParser parser;
commands.clear();
}
-BOOST_AUTO_UNIT_TEST(parseIncremental)
+SENF_AUTO_UNIT_TEST(parseIncremental)
{
senf::console::CommandParser parser;
}
}
-BOOST_AUTO_UNIT_TEST(parseExceptions)
+SENF_AUTO_UNIT_TEST(parseExceptions)
{
senf::console::CommandParser parser;
std::string msg;