From 8946f9325492e905ee1311e0e4a8da502ca90672 Mon Sep 17 00:00:00 2001 From: o9000 Date: Tue, 19 Dec 2017 15:32:23 +0100 Subject: [PATCH] New unit testing skeleton --- ChangeLog | 3 ++- src/util/test.c | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 4398b44..1ebcd02 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,8 +1,9 @@ -2017-11-10 master +2017-12-19 master - Enhancements: - Added Spanish translation (contributed by Vicmz) - Executor: updated tooltip documentation (issue #676) - Systray: warn on duplicate config option systray_name_filter (issue #652) + - Changed standard from C99 to C11 to support generic printing for unit tests 2017-11-05 15.3 - Fixes: diff --git a/src/util/test.c b/src/util/test.c index 7720764..d375a0d 100644 --- a/src/util/test.c +++ b/src/util/test.c @@ -146,8 +146,8 @@ void run_all_tests() fprintf(stdout, BLUE "tint2: " RED "%lu" BLUE " out of %lu tests " RED "failed." RESET "\n", failed, count); } -TEST(dummy_bad) { +TEST(dummy) { int x = 2; - int y = 3; + int y = 2; ASSERT_EQUAL(x, y); }