about summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2013-07-13 22:59:42 +0100
committerJames Booth <boothj5@gmail.com>2013-07-13 23:02:36 +0100
commit1d05a7047314fa3c669358114dc6ce36bbc08386 (patch)
tree3f50dddec96300fcf7e0d267a40956ba2616be02 /tests
parent907beb55f6dba952b6b07579c919fad251b7a0c0 (diff)
downloadprofani-tty-1d05a7047314fa3c669358114dc6ce36bbc08386.tar.gz
Down arrow adds current line to history and shows empty line
Diffstat (limited to 'tests')
-rw-r--r--tests/test_history.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_history.c b/tests/test_history.c
index 91e5aa99..6af96946 100644
--- a/tests/test_history.c
+++ b/tests/test_history.c
@@ -93,7 +93,7 @@ void prev_with_val_then_next_returns_val(void)
     assert_string_equals("Oioi", item2);
 }
 
-void prev_with_val_then_next_twice_returns_val(void)
+void prev_with_val_then_next_twice_returns_null(void)
 {
     History history = history_new(10);
     history_append(history, "Hello");
@@ -102,7 +102,7 @@ void prev_with_val_then_next_twice_returns_val(void)
     char *item2 = history_next(history, item1);
     char *item3 = history_next(history, item2);
 
-    assert_string_equals("Oioi", item3);
+    assert_is_null(item3);
 }
 
 void navigate_then_append_new(void)
@@ -225,7 +225,7 @@ void register_history_tests(void)
     TEST(previous_goes_to_correct_element);
     TEST(prev_then_next_returns_empty);
     TEST(prev_with_val_then_next_returns_val);
-    TEST(prev_with_val_then_next_twice_returns_val);
+    TEST(prev_with_val_then_next_twice_returns_null);
     TEST(navigate_then_append_new);
     TEST(edit_item_mid_history);
     TEST(edit_previous_and_append);