aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMosder <xmosder12@gmail.com>2026-07-31 21:00:53 +0200
committerMosder <xmosder12@gmail.com>2026-07-31 21:00:53 +0200
commitaafb4d4c8f5ccc7974b313e7b529dc405704fb01 (patch)
tree23daefbd9954c8e60d0b82faca171b306422a302
parent08389a6d306570fc4575988e62a8397a5ff49bee (diff)
feat: added information to README about what is implemented
-rw-r--r--README.md4
-rw-r--r--src/tester.c4
2 files changed, 5 insertions, 3 deletions
diff --git a/README.md b/README.md
index 29e056b..17a3e96 100644
--- a/README.md
+++ b/README.md
@@ -2,3 +2,7 @@
Just a bunch of useful code for me put into a single lib, so I don't have to implement it every single time.
Defnitely not the best implementations ever made, but they're mine, so idc.
+
+## Contains:
+- memory management helpers
+- testing framework
diff --git a/src/tester.c b/src/tester.c
index 361cfb9..766dd0b 100644
--- a/src/tester.c
+++ b/src/tester.c
@@ -72,14 +72,12 @@ TestGroup *add_test_group_fn(Tester *tester, const char *group_name) {
}
TestGroup *group = tester->groups + tester->n_groups++;
- // clang-format off
*group = (TestGroup){
.name = group_name,
.tests = safe_malloc(INIT_TEST_CAP * sizeof(TestName)),
.n_tests = 0,
- .test_cap = INIT_TEST_CAP
+ .test_cap = INIT_TEST_CAP,
};
- // clang-format on
return group;
}