aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2017-01-23 23:05:42 +0100
committerPřemysl Janouch <p.janouch@gmail.com>2017-01-23 23:05:42 +0100
commit6642bdf9cd779471fbc0a843f3d1450541eb46be (patch)
treebecd2b7cf9432844b01d505ef2e2f8a251b365e3 /tests
parent349a0fc3b123e1dc073628ccc0219a4b8bd1f84f (diff)
downloadliberty-6642bdf9cd779471fbc0a843f3d1450541eb46be.tar.gz
liberty-6642bdf9cd779471fbc0a843f3d1450541eb46be.tar.xz
liberty-6642bdf9cd779471fbc0a843f3d1450541eb46be.zip
Rename str_ensure_space() to str_reserve()
Let's not invent our own terminology.
Diffstat (limited to 'tests')
-rw-r--r--tests/liberty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/liberty.c b/tests/liberty.c
index b46ef87..ae66fc8 100644
--- a/tests/liberty.c
+++ b/tests/liberty.c
@@ -199,7 +199,7 @@ test_str (void)
struct str s;
str_init (&s);
- str_ensure_space (&s, MEGA);
+ str_reserve (&s, MEGA);
str_append_data (&s, x, sizeof x);
str_remove_slice (&s, 4, 4);
soft_assert (s.len == 4);