]> git.tdb.fi Git - libs/test.git/commitdiff
Don't use ++ with a bool
authorMikko Rasa <tdb@tdb.fi>
Fri, 6 Jul 2012 12:11:31 +0000 (15:11 +0300)
committerMikko Rasa <tdb@tdb.fi>
Fri, 6 Jul 2012 12:11:31 +0000 (15:11 +0300)
source/test.cpp

index a05349b594604a869b1729acf25f5894dad4c94d..910853f28da5dcf6da2e42a3ebde74b806bce513 100644 (file)
@@ -126,7 +126,7 @@ void Test::start_test(const string &descr)
 void Test::pass_test()
 {
        IO::print("\033[32mok\033[0m\n");
-       ++passed;
+       passed = true;
 }
 
 void Test::fail_test(const string &why)