Files
curtle/tests/test_vector.c
Leo Sulzbacher 5e70354ec2
Some checks failed
CI / build (push) Failing after 13s
feat: add common vec2 and vec3 operations
2026-03-14 17:25:54 +01:00

13 lines
189 B
C

#include <assert.h>
#include "curtle/vector.h"
int main()
{
struct vec2 a = { 1, 2 };
struct vec2 b = { 3, 4 };
struct vec2 r = vec2_add(a, b);
assert(r.x == 4);
assert(r.y == 6);
}