unit-tests/test-lib: fix typo in check_pointer_eq() description
The comment surrounding check_pointer_eq() should explain about what this function does instead of explaining check_int(). Correct this. Signed-off-by: Kousik Sanagavarapu <five231003@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Kousik Sanagavarapu committed
Jul 29, 2024 at 10:02 UTC
6e71d6ac7cb575d04c452762662b00a89cd0b0db
1 file changed
+3
-2
t/unit-tests/test-lib.h
+3
-2
@@ -76,8 +76,9 @@ int test_assert(const char *location, const char *check, int ok);
76
int check_bool_loc(const char *loc, const char *check, int ok);
77
78
/*
79
- * Compare two integers. Prints a message with the two values if the
80
- * comparison fails. NB this is not thread safe.
79
+ * Compare the equality of two pointers of same type. Prints a message
80
+ * with the two values if the equality fails. NB this is not thread
81
+ * safe.
82
*/
83
#define check_pointer_eq(a, b) \
84
(test__tmp[0].p = (a), test__tmp[1].p = (b), \