]> git.ipfire.org Git - thirdparty/git.git/commitdiff
t-ctype: align output of i
authorRené Scharfe <l.s.r@web.de>
Sun, 3 Mar 2024 10:13:27 +0000 (11:13 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sun, 3 Mar 2024 17:47:33 +0000 (09:47 -0800)
The unit test reports misclassified characters like this:

   # check "isdigit(i) == !!memchr("123456789", i, len)" failed at t/unit-tests/t-ctype.c:36
   #    left: 1
   #   right: 0
   #        i: 0x30

Reduce the indent of i to put its colon directly below the ones in the
preceding lines for consistency.

Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/unit-tests/t-ctype.c

index f0d61d6eb26342423e9fe0981ca0befb89c19bb8..02d8569aa30c381123e9aaf08d7b59cf4b27e527 100644 (file)
@@ -8,7 +8,7 @@ static void test_ctype_##func(void) { \
                BUILD_ASSERT_OR_ZERO(sizeof(string[0]) == sizeof(char)); \
        for (int i = 0; i < 256; i++) { \
                if (!check_int(func(i), ==, !!memchr(string, i, len))) \
-                       test_msg("       i: 0x%02x", i); \
+                       test_msg("      i: 0x%02x", i); \
        } \
        check(!func(EOF)); \
 }