summaryrefslogtreecommitdiff
path: root/tests/t0402-details.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/t0402-details.c')
-rw-r--r--tests/t0402-details.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/t0402-details.c b/tests/t0402-details.c
index a01a708e4..d97917a44 100644
--- a/tests/t0402-details.c
+++ b/tests/t0402-details.c
@@ -52,7 +52,7 @@ BEGIN_TEST(query_details_test)
must_be_true(strchr(message, '\n') != NULL);
must_be_true(strchr(message_short, '\n') == NULL);
must_be_true(commit_time > 0);
- must_be_true(0 <= parents && parents <= 2);
+ must_be_true(parents <= 2);
for (p = 0;p < parents;p++) {
parent = git_commit_parent(commit, p);
must_be_true(parent != NULL);