diff --git a/Tester/Test.cpp b/Tester/Test.cpp index 5f9989e..c32a09e 100644 --- a/Tester/Test.cpp +++ b/Tester/Test.cpp @@ -8,8 +8,19 @@ using namespace Jupiter; +unsigned int goodTests = 0; +unsigned int totalTests = 0; + +void test(bool expr) +{ + totalTests++; + if (expr) goodTests++; +} + int main() { + if (goodTests == totalTests) printf("All %u tests succeeded." ENDL, totalTests); + else printf("ERROR: Only %u/%u tests succeeded. %u tests failed." ENDL, goodTests, totalTests, totalTests - goodTests); #if defined _WIN32 system("pause"); #endif // _WIN32 diff --git a/Tester/Tester.vcxproj b/Tester/Tester.vcxproj index cdf1f43..e055047 100644 --- a/Tester/Tester.vcxproj +++ b/Tester/Tester.vcxproj @@ -63,7 +63,7 @@ Level3 - Disabled + Full true true WIN32;NDEBUG;_CONSOLE;_LIB;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)