Don't get testy with me

This commit is contained in:
2022-08-29 12:23:48 +10:00
parent 1937d727bb
commit 61efb96fe2
4 changed files with 184 additions and 0 deletions

21
test/test_node.c Normal file
View File

@@ -0,0 +1,21 @@
#include "node.h"
#include "memory.h"
#include "console_colors.h"
#include <stdio.h>
int main() {
{
//test literals
char* str = "foobar";
Node* node;
emitNodeLiteral(&node, TO_STRING_LITERAL(copyString(str, strlen(str)), strlen(str)) );
freeNode(node);
}
printf(NOTICE "All good\n" RESET);
return 0;
}