Unit Testing: Added assert for todo testcase to catch changes.

This commit is contained in:
Daniel Marjamäki 2010-04-17 12:51:59 +02:00
parent e417d3080a
commit 6371327487
1 changed files with 1 additions and 0 deletions

View File

@ -536,6 +536,7 @@ private:
" i = fgets();\n"
"}\n");
TODO_ASSERT_EQUALS("[test.cpp:2]: (style) Variable 'i' is assigned a value that is never used\n", errout.str());
ASSERT_EQUALS("", errout.str()); // current value - catch changes
functionVariableUsage("void foo()\n"
"{\n"