Skip to content
Snippets Groups Projects
Commit cfaa50eb authored by Jan Trávníček's avatar Jan Trávníček
Browse files

test primitive template types of grammar

parent 10709701
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -105,6 +105,12 @@ void GrammarTest::testUnrestrictedParser() {
}
 
void GrammarTest::testRegularParser() {
{
grammar::RightRG < signed char, int > grammar ( 1 );
grammar.addTerminalSymbol ( 2 );
CPPUNIT_ASSERT_THROW ( grammar.addNonterminalSymbol ( 2 ), exception::CommonException );
}
{
grammar::RightRG < std::string, int > grammar ( 1 );
 
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment