From 20c05b2f7760aaa669e820b7f698b7f366d2f10d Mon Sep 17 00:00:00 2001 From: James Booth Date: Fri, 2 Mar 2012 01:59:36 +0000 Subject: [PATCH] History test uses assert_is_null --- test_history.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test_history.c b/test_history.c index 14fbe564..8e1becc9 100644 --- a/test_history.c +++ b/test_history.c @@ -10,13 +10,13 @@ static void beforetest(void) static void previous_returns_null_after_init(void) { char *prev = history_previous(); - assert_true(prev == NULL); + assert_is_null(prev); } static void next_returns_null_after_init(void) { char *next = history_next(); - assert_true(next == NULL); + assert_is_null(next); } static void append_after_init_doesnt_fail(void) @@ -36,7 +36,7 @@ static void append_then_next_returns_null(void) { history_append("try append"); char *next = history_next(); - assert_true(next == NULL); + assert_is_null(next); } static void hits_null_at_top(void) @@ -46,7 +46,7 @@ static void hits_null_at_top(void) history_previous(); // cmd2 history_previous(); // cmd1 char *prev = history_previous(); - assert_true(prev == NULL); + assert_is_null(prev); } static void navigate_to_correct_item(void) @@ -112,7 +112,7 @@ static void append_previous_item(void) assert_string_equals(cmd1, "cmd1"); char *end = history_previous(); - assert_true(end == NULL); + assert_is_null(end); } void register_history_tests(void)