aboutsummaryrefslogtreecommitdiff
path: root/test_string.c
diff options
context:
space:
mode:
Diffstat (limited to 'test_string.c')
-rw-r--r--test_string.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/test_string.c b/test_string.c
index 59da739..ff55e67 100644
--- a/test_string.c
+++ b/test_string.c
@@ -2,18 +2,18 @@
#include "testing.h"
int test_string_literal_equality() {
- t_assert(Str_equals(S("Bonjour"), S("Bonjour")));
- return 0;
+ t_assert(Str_equals(S("Bonjour"), S("Bonjour")));
+ return 0;
}
int test_string_copy() {
- Arena perm = Arena_new(128e3);
- Str src = S("Hello");
+ Arena perm = Arena_new(128e3);
+ Str src = S("Hello");
- Str *cpy = Str_copy(&perm, src.data, src.len);
+ Str *cpy = Str_copy(&perm, src.data, src.len);
- t_assert(Str_equals(src, *cpy));
- t_assert_equal(Arena_get_used(perm), 21);
+ t_assert(Str_equals(src, *cpy));
+ t_assert_equal(Arena_get_used(perm), 21);
- return 0;
+ return 0;
}