aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2017-01-23 23:07:24 +0100
committerPřemysl Janouch <p.janouch@gmail.com>2017-01-23 23:07:24 +0100
commit0e08055d6d361d2a902225046e1e463bc8ce50c0 (patch)
tree6aa1b330cf63e126c4a66588fa901372bd8ee505 /tests
parent6642bdf9cd779471fbc0a843f3d1450541eb46be (diff)
downloadliberty-0e08055d6d361d2a902225046e1e463bc8ce50c0.tar.gz
liberty-0e08055d6d361d2a902225046e1e463bc8ce50c0.tar.xz
liberty-0e08055d6d361d2a902225046e1e463bc8ce50c0.zip
Rename strv_add*() to strv_append*()
Consistency.
Diffstat (limited to 'tests')
-rw-r--r--tests/liberty.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/liberty.c b/tests/liberty.c
index ae66fc8..4083173 100644
--- a/tests/liberty.c
+++ b/tests/liberty.c
@@ -162,7 +162,7 @@ test_strv (void)
struct strv v;
strv_init (&v);
- strv_add_owned (&v, xstrdup ("xkcd"));
+ strv_append_owned (&v, xstrdup ("xkcd"));
strv_reset (&v);
const char *a[] =
@@ -171,17 +171,17 @@ test_strv (void)
// Add the first two items via another vector
struct strv w;
strv_init (&w);
- strv_add_args (&w, a[0], a[1], NULL);
- strv_add_vector (&v, w.vector);
+ strv_append_args (&w, a[0], a[1], NULL);
+ strv_append_vector (&v, w.vector);
strv_free (&w);
// Add an item and delete it right after
- strv_add (&v, "test");
+ strv_append (&v, "test");
strv_remove (&v, v.len - 1);
// Add the rest of the list properly
for (int i = 2; i < (int) N_ELEMENTS (a); i++)
- strv_add (&v, a[i]);
+ strv_append (&v, a[i]);
// Check the contents
soft_assert (v.len == N_ELEMENTS (a));