templates: simplified a todo test case by removing a redundant function from the code
This commit is contained in:
parent
2a02041fd8
commit
0ea09b1cb6
|
@ -761,11 +761,7 @@ private:
|
|||
" ABC<int>::type v;\n"
|
||||
" v.push_back(4);\n"
|
||||
" }\n"
|
||||
"};\n"
|
||||
"\n"
|
||||
"int main() {\n"
|
||||
" return 0;\n"
|
||||
"}";
|
||||
"};\n";
|
||||
|
||||
const std::string expected(" template < typename T > class ABC "
|
||||
"{"
|
||||
|
@ -775,8 +771,7 @@ private:
|
|||
"std :: vector < int > v ;"
|
||||
" v . push_back ( 4 ) ;"
|
||||
" } "
|
||||
"} ; "
|
||||
"int main ( ) { return 0 ; }");
|
||||
"} ;");
|
||||
|
||||
TODO_ASSERT_EQUALS(expected, sizeof_(code));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue