diff options
author | Harry Jeffery <harry@exec64.co.uk> | 2017-11-21 21:51:54 +0000 |
---|---|---|
committer | Harry Jeffery <harry@exec64.co.uk> | 2017-11-23 21:34:11 +0000 |
commit | 57eb6a9168219d3afd90589e15b14778e832cd28 (patch) | |
tree | 8601ee4e987d136715f66ee5c9192766c0b48148 /test | |
parent | 9167c61b60c5492c6168687fd3fbb3b9f56ccd8c (diff) | |
download | imv-57eb6a9168219d3afd90589e15b14778e832cd28.tar.gz |
Remove imv_ prefix from struct imv_list
It's just bloat. No value.
Diffstat (limited to 'test')
-rw-r--r-- | test/list.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/test/list.c b/test/list.c index 8c095d6..42c68a2 100644 --- a/test/list.c +++ b/test/list.c @@ -9,15 +9,15 @@ static void test_split_string(void **state) { (void)state; - struct imv_list *list; + struct list *list; - list = imv_split_string("word", ' '); + list = list_from_string("word", ' '); assert_true(list); assert_true(list->len == 1); assert_false(strcmp(list->items[0], "word")); - imv_list_deep_free(list); + list_deep_free(list); - list = imv_split_string("hello world this is a test", ' '); + list = list_from_string("hello world this is a test", ' '); assert_true(list); assert_true(list->len == 6); assert_false(strcmp(list->items[0], "hello")); @@ -26,15 +26,15 @@ static void test_split_string(void **state) assert_false(strcmp(list->items[3], "is")); assert_false(strcmp(list->items[4], "a")); assert_false(strcmp(list->items[5], "test")); - imv_list_deep_free(list); + list_deep_free(list); - list = imv_split_string(" odd whitespace test ", ' '); + list = list_from_string(" odd whitespace test ", ' '); assert_true(list); assert_true(list->len == 3); assert_false(strcmp(list->items[0], "odd")); assert_false(strcmp(list->items[1], "whitespace")); assert_false(strcmp(list->items[2], "test")); - imv_list_deep_free(list); + list_deep_free(list); } int main(void) |