mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 23:04:08 +10:00
Don't get testy with me
This commit is contained in:
21
test/test_node.c
Normal file
21
test/test_node.c
Normal 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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user