Baremetal Lisp interpreter and compiler for low-resource devices
Revision | e937d028999d556ee612c3a77ac2d551eff0321f (tree) |
---|---|
Time | 2020-09-08 08:49:43 |
Author | AlaskanEmily <emily@alas...> |
Commiter | AlaskanEmily |
Complete type comparison tests in the unit tests
@@ -147,6 +147,18 @@ static int TestCompareNilList(void){ | ||
147 | 147 | |
148 | 148 | /*****************************************************************************/ |
149 | 149 | |
150 | +static int TestCompareAtomList(void){ | |
151 | + int SUCCESS_INDICATOR = 1; | |
152 | + static const struct SL_S_Atom a = SL_S_STATIC_ATOM("a"); | |
153 | + struct SL_S_List list; | |
154 | + list.head = SL_S_NIL; | |
155 | + list.tail = SL_S_NIL; | |
156 | + TEST_SL_COMPARE(SL_S_MK_ATOM(&a), SL_S_MK_LIST(&list)); | |
157 | + return SUCCESS_INDICATOR; | |
158 | +} | |
159 | + | |
160 | +/*****************************************************************************/ | |
161 | + | |
150 | 162 | static int TestCompareListSame(void){ |
151 | 163 | int SUCCESS_INDICATOR = 1; |
152 | 164 | struct SL_S_List list; |
@@ -216,6 +228,7 @@ static const struct YYY_Test sl_s_parse_tests[] = { | ||
216 | 228 | YYY_TEST(TestCompareNil), |
217 | 229 | YYY_TEST(TestCompareNilAtom), |
218 | 230 | YYY_TEST(TestCompareNilList), |
231 | + YYY_TEST(TestCompareAtomList), | |
219 | 232 | YYY_TEST(TestCompareListSame), |
220 | 233 | YYY_TEST(TestCompareLists1) |
221 | 234 | }; |