feat: add linux code style formatting
All checks were successful
CI / build (pull_request) Successful in 13s
CI / build (push) Successful in 13s

This commit was merged in pull request #5.
This commit is contained in:
2026-03-14 16:38:25 +01:00
parent 2885daf577
commit 79997dbce2
8 changed files with 834 additions and 25 deletions

View File

@@ -1,12 +0,0 @@
#include <assert.h>
#include "curtle/linear_algebra.h"
int main() {
vec2 a = {1,2};
vec2 b = {3,4};
vec2 r = vec2_add(a,b);
assert(r.x == 4);
assert(r.y == 6);
}

13
tests/test_vector.c Normal file
View File

@@ -0,0 +1,13 @@
#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);
}