Add some tests and refactor test suite

This commit is contained in:
Joey Yakimowich-Payne 2018-05-27 17:57:24 +09:00
commit a810611cee
14 changed files with 86 additions and 17 deletions

View file

@ -0,0 +1 @@
enum color { RED = 1, GREEN, BLUE};

View file

@ -0,0 +1 @@
type color = enum RED = 1, GREEN, BLUE

View file

@ -0,0 +1 @@
int sub(int x, int y);

View file

@ -0,0 +1 @@
proc sub(x: cint, y: cint): cint

View file

@ -0,0 +1,2 @@
#define SIMPLE 42
#define FUNC foo(SIMPLE)

View file

@ -0,0 +1,2 @@
const SIMPLE = 42
const FUNC = foo(SIMPLE)

View file

@ -0,0 +1 @@
#define SIMPLE 42

View file

@ -0,0 +1 @@
const SIMPLE = 42

View file

@ -0,0 +1 @@
#define FUNC foo(42)

View file

@ -0,0 +1 @@
const FUNC = foo(42)