From fdedbb3b1fe26d2063481528194d3d3f45c71be0 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Thu, 9 May 2024 11:05:48 -0300 Subject: Normalize all "color" to "colour" --- src/testing.c | 2 +- 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(); } -- cgit v1.2.3