src/tests/test_parser.cpp
BOOST_AUTO_TEST_CASE(parseEvaluation)
{
    const std::string input = R"(
    x = evaluate(4, a+bc +   d);
    )";
    INIT_BOILERPLATE
    auto st = parser.parseStatement();
    BOOST_REQUIRE(st->toString() == "x = evaluate(4, a + bc + d)");
}
// parseLiteralString - tested in parseProduction, parseEvaluation and parseLiteralExecution
tested in parseProduction, parseEvaluation and parseLiteralExecution
tested in parseProduction parseEvaluation and parseLiteralExecution
BOOST_AUTO_TEST_CASE(parseEvaluation)
{
    const std::string input = R"(
    x = evaluate(4, a+bc +   d);
    )";
    INIT_BOILERPLATE
    auto st = parser.parseStatement();
    BOOST_REQUIRE(st->toString() == "x = evaluate(4, a + bc + d)");
}
BOOST_AUTO_TEST_CASE ( parseEvaluation ) { const std :: string input = R" ( 
    x = evaluate(4, a+bc +   d);
     ) " ; INIT_BOILERPLATE auto st = parser . parseStatement ( ) ; BOOST_REQUIRE ( st -> toString ( ) == " " ) ; }
parseLiteralString - tested in parseProduction, parseEvaluation and parseLiteralExecution
parseLiteralString - tested in parseProduction parseEvaluation and parseLiteralExecution