Unit Testing: Added an ASSERT

This commit is contained in:
Daniel Marjamäki 2010-04-10 18:54:12 +02:00
parent 15da4fe689
commit e17cce6ac4
1 changed files with 1 additions and 0 deletions

View File

@ -475,6 +475,7 @@ private:
" memclr( 10, str ); // ERROR\n"
"}\n");
TODO_ASSERT_EQUALS("[test.cpp:9] -> [test.cpp:3]: (possible error) Array index out of bounds\n", errout.str());
ASSERT_EQUALS("", errout.str()); // current result
// This is not an error
check("static void memclr( char *data, int size )\n"