about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2014-01-19 02:14:28 +0000
committerJames Booth <boothj5@gmail.com>2014-01-19 02:14:28 +0000
commita9a860cb1321415276c790cac0b58720d77c53e7 (patch)
treec3744dc59dee85ad15e678129133ee0949abeb64
parent10fb692f7f125c9f6000e9c5499fa3948949aaaa (diff)
downloadprofani-tty-a9a860cb1321415276c790cac0b58720d77c53e7.tar.gz
Fixed broken tests
-rw-r--r--tests/test_autocomplete.c2
-rw-r--r--tests/test_common.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_autocomplete.c b/tests/test_autocomplete.c
index e6fdde47..3eea639b 100644
--- a/tests/test_autocomplete.c
+++ b/tests/test_autocomplete.c
@@ -44,7 +44,7 @@ void add_one_and_complete(void **state)
     autocomplete_add(ac, "Hello");
     char *result = autocomplete_complete(ac, "Hel");
 
-    assert_string_equal("Hello aaaa", result);
+    assert_string_equal("Hello", result);
 
     autocomplete_clear(ac);
 }
diff --git a/tests/test_common.c b/tests/test_common.c
index bcd421a0..0d02bbd0 100644
--- a/tests/test_common.c
+++ b/tests/test_common.c
@@ -46,7 +46,7 @@ void replace_two_substr(void **state)
 
     char *result = str_replace(string, sub, new);
 
-    assert_string_equal("it was a was string ssss", result);
+    assert_string_equal("it was a was string", result);
 }
 
 void replace_char(void **state)