tests: split of symtable testing into its own suite

makes sense to be there, not in the lisp API
This commit is contained in:
2026-02-05 04:41:57 +00:00
parent 40ef094b68
commit 9095b118fd
3 changed files with 49 additions and 18 deletions

View File

@@ -28,24 +28,6 @@ void int_test(void)
TEST_PASSED();
}
void symtable_test(void)
{
sym_table_t table = {0};
sym_table_init(&table);
for (u64 i = 0; i < ARRSIZE(words); ++i)
sym_table_find(&table, SV((char *)words[i], strlen(words[i])));
TEST(table.count == ARRSIZE(unique_words), "%lu == %lu", table.count,
ARRSIZE(unique_words));
TEST(table.count < ARRSIZE(unique_words), "%lu < %lu", table.count,
ARRSIZE(unique_words));
TEST_PASSED();
sym_table_cleanup(&table);
}
void sym_test(void)
{
sys_t system = {0};