diff options
author | EuAndreh <eu@euandre.org> | 2024-05-09 11:05:48 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2024-05-09 11:05:48 -0300 |
commit | fdedbb3b1fe26d2063481528194d3d3f45c71be0 (patch) | |
tree | a6234ea3291ff5c622893be4f005329ebf16571d | |
parent | Makefile: Make all $(derived-assets) depend on Makefile and deps.mk, instead ... (diff) | |
download | pindaiba-fdedbb3b1fe26d2063481528194d3d3f45c71be0.tar.gz pindaiba-fdedbb3b1fe26d2063481528194d3d3f45c71be0.tar.xz |
Normalize all "color" to "colour"
-rw-r--r-- | src/testing.c | 2 | ||||
-rw-r--r-- | tests/testing.c | 12 |
2 files changed, 7 insertions, 7 deletions
diff --git a/src/testing.c b/src/testing.c index e2c087c..917ad45 100644 --- a/src/testing.c +++ b/src/testing.c @@ -12,7 +12,7 @@ #define COLOUR_YELLOW "\033[0;33m" static const char *const -ENVVAR_NAME = "NO_COLOR"; +ENVVAR_NAME = "NO_COLOUR"; static bool diff --git a/tests/testing.c b/tests/testing.c index 3c605a7..554dd34 100644 --- a/tests/testing.c +++ b/tests/testing.c @@ -11,32 +11,32 @@ main(void) { const bool should_overwrite = true; if (unsetenv(ENVVAR_NAME)) { - perror("unsetenv(\"NO_COLOR\")"); + perror("unsetenv(\"NO_COLOUR\")"); goto out; } { assert(show_colour() == true); - testing("unset NO_COLOR"); + testing("unset NO_COLOUR"); test_ok(); } if (setenv(ENVVAR_NAME, "", should_overwrite)) { - perror("setenv(\"NO_COLOR\", \"\", 1)"); + perror("setenv(\"NO_COLOUR\", \"\", 1)"); goto out; } { assert(show_colour() == true); - testing("empty NO_COLOR"); + testing("empty NO_COLOUR"); test_ok(); } if (setenv(ENVVAR_NAME, "something", should_overwrite)) { - perror("setenv(\"NO_COLOR\", \"something\", 1)"); + perror("setenv(\"NO_COLOUR\", \"something\", 1)"); goto out; } { assert(show_colour() == false); - testing("defined NO_COLOR"); + testing("defined NO_COLOUR"); test_ok(); } |