aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}