1 #ifndef INTERPRETER_SUITE_H_
2 #define INTERPRETER_SUITE_H_
5 #include "script/builtins.h"
9 struct Expr nil1 = NIL;
10 struct Expr nil2 = NIL;
11 ASSERT_TRUE(equal(nil1, nil2), "nils are not equal");
25 ASSERT_TRUE(equal(list1, list2), "lists are not equal");
34 struct Expr nil = NIL;
36 struct Expr a = SYMBOL("a");
37 struct Expr b = SYMBOL("b");
38 struct Expr c = SYMBOL("c");
40 struct Expr a_pair = CONS(a, NUMBER(10.0f));
41 struct Expr b_pair = CONS(b, NUMBER(20.0f));
42 struct Expr c_pair = CONS(c, NUMBER(30.0f));
49 equal(a_pair, assoc(b, alist));
55 TEST_SUITE(interpreter_suite)
63 #endif // INTERPRETER_SUITE_H_