templates: simplified a todo test case by removing a redundant function from the code

This commit is contained in:
Daniel Marjamäki 2009-07-08 09:38:59 +02:00
parent 2a02041fd8
commit 0ea09b1cb6
1 changed files with 2 additions and 7 deletions

View File

@ -761,11 +761,7 @@ private:
" ABC<int>::type v;\n" " ABC<int>::type v;\n"
" v.push_back(4);\n" " v.push_back(4);\n"
" }\n" " }\n"
"};\n" "};\n";
"\n"
"int main() {\n"
" return 0;\n"
"}";
const std::string expected(" template < typename T > class ABC " const std::string expected(" template < typename T > class ABC "
"{" "{"
@ -775,8 +771,7 @@ private:
"std :: vector < int > v ;" "std :: vector < int > v ;"
" v . push_back ( 4 ) ;" " v . push_back ( 4 ) ;"
" } " " } "
"} ; " "} ;");
"int main ( ) { return 0 ; }");
TODO_ASSERT_EQUALS(expected, sizeof_(code)); TODO_ASSERT_EQUALS(expected, sizeof_(code));
} }