diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2014-07-01 22:09:01 +0400 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2014-07-01 22:40:16 +0400 |
commit | 0cee70ebb7297f155129e0d05f5a23be82231256 (patch) | |
tree | 6d98f55d737f4187e58f2a180ffb75f05b98bfba /tests/status | |
parent | e1fc03c9baea9864dec90d0aef7aadcc2ff20576 (diff) |
Introduce cl_assert_equal_oid
Diffstat (limited to 'tests/status')
-rw-r--r-- | tests/status/single.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/status/single.c b/tests/status/single.c index 292c9120a..6efaab294 100644 --- a/tests/status/single.c +++ b/tests/status/single.c @@ -22,7 +22,7 @@ void test_status_single__hash_single_file(void) cl_set_cleanup(&cleanup__remove_file, (void *)file_name); cl_git_pass(git_odb_hashfile(&actual_id, file_name, GIT_OBJ_BLOB)); - cl_assert(git_oid_cmp(&expected_id, &actual_id) == 0); + cl_assert_equal_oid(&expected_id, &actual_id); } /* test retrieving OID from an empty file apart from the ODB */ @@ -40,6 +40,6 @@ void test_status_single__hash_single_empty_file(void) cl_set_cleanup(&cleanup__remove_file, (void *)file_name); cl_git_pass(git_odb_hashfile(&actual_id, file_name, GIT_OBJ_BLOB)); - cl_assert(git_oid_cmp(&expected_id, &actual_id) == 0); + cl_assert_equal_oid(&expected_id, &actual_id); } |