/* main.c: Main boot file for unit tests * Created: 2025-08-21 * Author: Aryadev Chavali * License: See end of file * Commentary: */ #include #include #include #include #include "./data.h" #include "./test.h" #include "./test_lisp_api.c" #include "./test_stream.c" #include "./test_sv.c" #include "./test_symtable.c" #include "./test_vec.c" test_suite_t SUITES[] = { SV_SUITE, VEC_SUITE, SYMTABLE_SUITE, STREAM_SUITE, LISP_API_SUITE, }; int main(void) { // Seed the pseudorandom gen for subsequent tests. srand(time(NULL)); for (u64 i = 0; i < ARRSIZE(SUITES); ++i) { test_suite_t suite = SUITES[i]; printf("Suite [%s]\n", suite.name); for (u64 j = 0; j < suite.size; ++j) { suite.tests[j].fn(); } } return 0; } /* Copyright (C) 2025, 2026 Aryadev Chavali * This program is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU General Public License Version 2 for * details. * You may distribute and modify this code under the terms of the GNU General * Public License Version 2, which you should have received a copy of along with * this program. If not, please go to . */