feat: add linux code style formatting
This commit was merged in pull request #5.
This commit is contained in:
@@ -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
13
tests/test_vector.c
Normal 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);
|
||||
}
|
||||
Reference in New Issue
Block a user