Unit Testing: Added assert for todo testcase to catch changes.
This commit is contained in:
parent
e417d3080a
commit
6371327487
|
@ -536,6 +536,7 @@ private:
|
||||||
" i = fgets();\n"
|
" i = fgets();\n"
|
||||||
"}\n");
|
"}\n");
|
||||||
TODO_ASSERT_EQUALS("[test.cpp:2]: (style) Variable 'i' is assigned a value that is never used\n", errout.str());
|
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"
|
functionVariableUsage("void foo()\n"
|
||||||
"{\n"
|
"{\n"
|
||||||
|
|
Loading…
Reference in New Issue