From: <net...@us...> - 2003-05-10 13:11:10
|
Update of /cvsroot/cpptool/rfta/src/rftaparser In directory sc8-pr-cvs1:/tmp/cvs-serv17499/src/rftaparser Modified Files: UnparsedDeclarationMutatorTest.cpp Log Message: -- corrected test (fct body not allowed for this parser type) Index: UnparsedDeclarationMutatorTest.cpp =================================================================== RCS file: /cvsroot/cpptool/rfta/src/rftaparser/UnparsedDeclarationMutatorTest.cpp,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** UnparsedDeclarationMutatorTest.cpp 4 May 2003 06:56:47 -0000 1.12 --- UnparsedDeclarationMutatorTest.cpp 10 May 2003 13:11:06 -0000 1.13 *************** *** 23,27 **** const std::string DECLARATOR = "DECLARATOR"; const std::string SPECIFIERLIST = "SPECIFIERLIST"; - const std::string FUNCTIONBODY = "FUNCTIONBODY"; namespace Testing --- 23,26 ---- *************** *** 98,102 **** // check number of specifiers parsed: ! CppUnit::assertEquals( specifierList->getChildCount(), specifierCount, sourceLine, boost::io::str(boost::format("Bad number of specifiers:\n Actual %1%\n Expected %2%.") % specifierList->getChildCount() --- 97,101 ---- // check number of specifiers parsed: ! CppUnit::assertEquals( specifierCount, specifierList->getChildCount() ,sourceLine, boost::io::str(boost::format("Bad number of specifiers:\n Actual %1%\n Expected %2%.") % specifierList->getChildCount() *************** *** 115,119 **** } // check declarators ! CppUnit::assertEquals( node->getChildCount() , declaratorCount , sourceLine, "Wrong number of declarators." ); --- 114,118 ---- } // check declarators ! CppUnit::assertEquals( declaratorCount, node->getChildCount(), sourceLine, "Wrong number of declarators." ); *************** *** 823,828 **** Testing::KeyedString source; source.addKeyed(SPECIFIER , "inline" ) << " "; ! source.addKeyed(DECLARATOR, "KeyedString::operator std::string() const" ) << " "; ! source.addKeyed(FUNCTIONBODY,"{ return sequence_; }"); SourceASTNodePtr sourceAST = RFTA_ASSERT_DECLARATION_MUTATOR_PASS( source ); --- 822,826 ---- Testing::KeyedString source; source.addKeyed(SPECIFIER , "inline" ) << " "; ! source.addKeyed(DECLARATOR, "KeyedString::operator std::string() const" ) << ";"; SourceASTNodePtr sourceAST = RFTA_ASSERT_DECLARATION_MUTATOR_PASS( source ); |