aboutsummaryrefslogtreecommitdiff
path: root/src/std/test_vec.c
diff options
context:
space:
mode:
authorMartin Kagamino Lehoux <martin@lehoux.net>2026-04-08 13:26:33 +0200
committerMartin Kagamino Lehoux <martin@lehoux.net>2026-04-08 13:26:33 +0200
commitd7e5728e831f2bc9424227c84be477c554c97aa8 (patch)
treec18de092ba6ce5823b775a56977c8e1e69988bb9 /src/std/test_vec.c
parentcf534d762754860ed5b714974f99acd282d48b3b (diff)
Switch from pyright to ty
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'src/std/test_vec.c')
-rw-r--r--src/std/test_vec.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/std/test_vec.c b/src/std/test_vec.c
index e95a1b6..451b965 100644
--- a/src/std/test_vec.c
+++ b/src/std/test_vec.c
@@ -34,7 +34,8 @@ i32 test_vec_push() {
Vec v = Vec_new(&perm, i32, 4);
i32 vals[] = {10, 20, 30};
- for (i32 i = 0; i < 3; i++) Vec_push(&perm, &v, &vals[i]);
+ for (i32 i = 0; i < 3; i++)
+ Vec_push(&perm, &v, &vals[i]);
t_assert_equal(v.len, 3);
t_assert_equal(*Vec_get(v, i32, 0), 10);
@@ -49,7 +50,8 @@ i32 test_vec_grow() {
Arena perm = Arena_new(128e3);
Vec v = Vec_new(&perm, i32, 2);
- for (i32 i = 0; i < 8; i++) Vec_push(&perm, &v, &i);
+ for (i32 i = 0; i < 8; i++)
+ Vec_push(&perm, &v, &i);
t_assert_equal(v.len, 8);
t_assert_equal(Arena_get_used(perm), sizeof(i32) * (2 + 4 + 8));