aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/driver.c2
-rw-r--r--tests/test_join_str.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/driver.c b/tests/driver.c
index 235d598..d3739b5 100644
--- a/tests/driver.c
+++ b/tests/driver.c
@@ -21,7 +21,7 @@ test_runner (struct test_t *test, int n)
if (test_result == 0)
printf ("Test Case %d: %s -- %sSUCCESS%s\n\n", n, test->test_name, success, reset);
else
- printf ("Test Case %d: %s -- %sFAIL %d%s\n\n", n, test->test_name, test_result, fail, reset);
+ printf ("Test Case %d: %s -- %sFAIL %d%s\n\n", n, test->test_name, fail, test_result, reset);
}
void
diff --git a/tests/test_join_str.c b/tests/test_join_str.c
index 711c864..f756b2e 100644
--- a/tests/test_join_str.c
+++ b/tests/test_join_str.c
@@ -11,9 +11,9 @@ test_join_str ()
for (int i = 0; i < 3; i++)
test_string[i] = strdup ("hello");
- char *joined_string = join_str (test_string, 3, ' ');
+ char *joined_string = join_str (test_string, 3, " && ");
- if (strcmp (joined_string, "hello hello hello") != 0)
+ if (strcmp (joined_string, "hello && hello && hello") != 0)
errno = 1;
free_secure ((void **) &test_string[0], strlen (test_string[0]));