aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
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);