Added extra tests for additional tests that are not generated

This commit is contained in:
Kyler Olsen 2025-11-17 11:04:03 -07:00
parent f52ea00c34
commit 2d7616e7c6
3 changed files with 32 additions and 0 deletions

View File

@ -39,5 +39,6 @@ typedef struct {
TestsReport run_string_tests();
TestsReport run_lexer_tests();
TestsReport run_extra_tests();
#endif // SLS_TESTS_H

29
SLS_C/tests/extra_tests.c Normal file
View File

@ -0,0 +1,29 @@
// Kyler Olsen
// YREA SLS
// Extra Tests
// November 2025
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <stdint.h>
#include "sls/string.h"
#include "sls/lexer.h"
#include "sls/errors.h"
#include "tests/tests.h"
static const size_t NUM_EXTRA_TESTS = 0;
// Run all extra tests
TestsReport run_extra_tests()
{
TestsReport report = {
.section = SLS_STR("extra_tests"),
.count = NUM_EXTRA_TESTS,
.tests = malloc(sizeof(TestResult) * NUM_EXTRA_TESTS)};
size_t i = 0;
// report.tests[i++] = test_malloc_and_copy();
return report;
}

View File

@ -85,6 +85,8 @@ int main(void) {
test_report(run_string_tests(), &counts);
printf(" ========== Lexer Tests ==========\n");
test_report(run_lexer_tests(), &counts);
printf(" ========== Extra Tests ==========\n");
test_report(run_extra_tests(), &counts);
printf(" ========== Tests Overview ==========\n");
if (counts.errored > 0)