<- Back to shtanton's homepage
aboutsummaryrefslogtreecommitdiff
path: root/test.c
diff options
context:
space:
mode:
authorCharlie Stanton <charlie@shtanton.xyz>2021-10-03 21:31:59 +0100
committerCharlie Stanton <charlie@shtanton.xyz>2021-10-03 21:31:59 +0100
commitd973b4b8eaaa5e7f1d10f9f02069c6d7bde25dcc (patch)
tree814987a1977dc62251fc05a1a76526d2479722dd /test.c
parent69852d9ae210080e999eb5bbb81481f527580a97 (diff)
downloadcudl-d973b4b8eaaa5e7f1d10f9f02069c6d7bde25dcc.tar
Add testing code and fix a few bugs
Diffstat (limited to 'test.c')
-rw-r--r--test.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/test.c b/test.c
index b2f9976..d4d138b 100644
--- a/test.c
+++ b/test.c
@@ -1,2 +1,11 @@
+#include <stdio.h>
+#include "cudl.h"
+
int main() {
+ struct cudl_value value;
+ cudl_parse_from_file(stdin, &value);
+ if (cudl_err)
+ return cudl_err;
+ cudl_debug(value);
+ return 0;
}