Unit Testing: Added an ASSERT
This commit is contained in:
parent
15da4fe689
commit
e17cce6ac4
|
@ -475,6 +475,7 @@ private:
|
||||||
" memclr( 10, str ); // ERROR\n"
|
" memclr( 10, str ); // ERROR\n"
|
||||||
"}\n");
|
"}\n");
|
||||||
TODO_ASSERT_EQUALS("[test.cpp:9] -> [test.cpp:3]: (possible error) Array index out of bounds\n", errout.str());
|
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
|
// This is not an error
|
||||||
check("static void memclr( char *data, int size )\n"
|
check("static void memclr( char *data, int size )\n"
|
||||||
|
|
Loading…
Reference in New Issue