From 637132748712435553d0cd59b7ce3ac4cafe8c10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sat, 17 Apr 2010 12:51:59 +0200 Subject: [PATCH] Unit Testing: Added assert for todo testcase to catch changes. --- test/testunusedvar.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/test/testunusedvar.cpp b/test/testunusedvar.cpp index a4b48c87f..6dca56df3 100644 --- a/test/testunusedvar.cpp +++ b/test/testunusedvar.cpp @@ -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"