Skip to content

Commit 7a8d6c0

Browse files
rscharfegitster
authored andcommitted
t-ctype: align output of i
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 752cb6e commit 7a8d6c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/unit-tests/t-ctype.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ static void test_ctype_##func(void) { \
88
BUILD_ASSERT_OR_ZERO(sizeof(string[0]) == sizeof(char)); \
99
for (int i = 0; i < 256; i++) { \
1010
if (!check_int(func(i), ==, !!memchr(string, i, len))) \
11-
test_msg(" i: 0x%02x", i); \
11+
test_msg(" i: 0x%02x", i); \
1212
} \
1313
check(!func(EOF)); \
1414
}

0 commit comments

Comments
 (0)