// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/** \file
- \brief Parse.test unit tests */
+ \brief Parse unit tests */
//#include "Parse.test.hh"
//#include "Parse.test.ih"
{ os_ << "builtin_cd( " << senf::stringJoin(path, "/") << " )\n"; }
void builtin_ls(std::vector<senf::console::Token> const & path)
{ os_ << "builtin_ls( " << senf::stringJoin(path, "/") << " )\n"; }
+ void builtin_ll(std::vector<senf::console::Token> const & path)
+ { os_ << "builtin_ll( " << senf::stringJoin(path, "/") << " )\n"; }
+ void builtin_lr(std::vector<senf::console::Token> const & path)
+ { os_ << "builtin_lr( " << senf::stringJoin(path, "/") << " )\n"; }
void builtin_exit()
{ os_ << "builtin_exit()\n"; }
void builtin_help(std::vector<senf::console::Token> const & path)
{
ss.str("");
BOOST_CHECK( boost::spirit::parse(
+ "lr /foo/bar;",
+ grammar.use_parser<Grammar::CommandParser>(),
+ grammar.use_parser<Grammar::SkipParser>() ) . full );
+ BOOST_CHECK_EQUAL( ss.str(), "builtin_lr( None('')/Word('foo')/Word('bar') )\n" );
+ }
+
+ {
+ ss.str("");
+ BOOST_CHECK( boost::spirit::parse(
"cd /foo/bar;",
grammar.use_parser<Grammar::CommandParser>(),
grammar.use_parser<Grammar::SkipParser>() ) . full );