aboutsummaryrefslogtreecommitdiff
path: root/src/unittest.c
diff options
context:
space:
mode:
authoreug-vs <eugene@eug-vs.xyz>2022-09-14 17:49:07 +0300
committereug-vs <eugene@eug-vs.xyz>2022-09-14 17:50:55 +0300
commita881be4856c6d3dc7675059d5a635d34434b5797 (patch)
treede1551798279a2fa048e70c977b3c3f98f515d62 /src/unittest.c
parent71f28db1b8e26377d56f0eb0aef01f6c6c3afbd0 (diff)
downloadj1chess-a881be4856c6d3dc7675059d5a635d34434b5797.tar.gz
refactor: use lowerCamelCase for functions
Diffstat (limited to 'src/unittest.c')
-rw-r--r--src/unittest.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/unittest.c b/src/unittest.c
index af81cd9..137e899 100644
--- a/src/unittest.c
+++ b/src/unittest.c
@@ -16,14 +16,14 @@ bool assert(bool expression, const char* message) {
return expression;
}
-void unit_test(bool expression, const char* subject) {
+void unitTest(bool expression, const char* subject) {
TOTAL++;
SECTION_TOTAL++;
printf( "%d.%d %s: %s\n", SECTION_NUMBER, SECTION_TOTAL, subject, expression? draw(GRN, PASS) : draw(RED, FAIL));
if (expression) SUCCESS++;
}
-void start_test_section(const char* name) {
+void testSection(const char* name) {
SECTION_TOTAL = 0;
SECTION_NUMBER++;
printf("%d.%s %s %s\n", SECTION_NUMBER, CYAN, name, RESET);