From 1cb408c0e4f42c4b11e8e2f80374c26bb905ef22 Mon Sep 17 00:00:00 2001 From: Mosder Date: Tue, 18 Aug 2026 16:48:53 +0200 Subject: feat: added basic definitions and documentation + templates for implementation and tests for string slices --- tests/string_tests.c | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 tests/string_tests.c (limited to 'tests/string_tests.c') diff --git a/tests/string_tests.c b/tests/string_tests.c new file mode 100644 index 0000000..c1afd4f --- /dev/null +++ b/tests/string_tests.c @@ -0,0 +1,46 @@ +#include "string_tests.h" +#include "moslib/string.h" + +Test creating() { + test_assert(0, "TODO"); +} + +Test printing() { + test_assert(0, "TODO"); +} + +Test comparing() { + test_assert(0, "TODO"); +} + +Test splitting() { + test_assert(0, "TODO"); +} + +Test trimming() { + test_assert(0, "TODO"); +} + +Test prefix_suffix() { + test_assert(0, "TODO"); +} + +Test finding() { + test_assert(0, "TODO"); +} + +Test utf8_len_test() { + test_assert(0, "TODO"); +} + +void string_tests(Tester *tester) { + TestGroup *group = add_test_group(tester, "moslib/string.h"); + add_test(group, creating); + add_test(group, printing); + add_test(group, comparing); + add_test(group, splitting); + add_test(group, trimming); + add_test(group, prefix_suffix); + add_test(group, finding); + add_test(group, utf8_len_test); +} -- cgit v1.2.3