From 8275f714792d5071230aeaa51f6db314802ed2b8 Mon Sep 17 00:00:00 2001 From: jlamothe Date: Sat, 4 Nov 2023 21:56:07 +0000 Subject: [PATCH] make tests actually work --- mkfile | 7 ++++--- test/init.c | 6 +++--- test/init.h | 2 +- test/mkfile | 11 +++++++++++ test.c => test/test.c | 2 +- 5 files changed, 20 insertions(+), 8 deletions(-) create mode 100644 test/mkfile rename test.c => test/test.c (78%) diff --git a/mkfile b/mkfile index 068b7e7..22e6380 100644 --- a/mkfile +++ b/mkfile @@ -1,12 +1,13 @@ void -test_init() +test_init(void) { - print("testing: init()"); - print("tests not yet defined"); + print("testing: init()\n"); + print("tests not yet defined\n"); } //jl diff --git a/test/init.h b/test/init.h index f3891ef..c4db89f 100644 --- a/test/init.h +++ b/test/init.h @@ -1,3 +1,3 @@ -extern void test_init(); +extern void test_init(void); //jl diff --git a/test/mkfile b/test/mkfile new file mode 100644 index 0000000..d3f42b6 --- /dev/null +++ b/test/mkfile @@ -0,0 +1,11 @@ + #include -#include "test/init.h" +#include "init.h" void main()