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/fetchhead | |
parent | e1fc03c9baea9864dec90d0aef7aadcc2ff20576 (diff) |
Introduce cl_assert_equal_oid
Diffstat (limited to 'tests/fetchhead')
-rw-r--r-- | tests/fetchhead/nonetwork.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/fetchhead/nonetwork.c b/tests/fetchhead/nonetwork.c index e7ff2ca30..7b64a6339 100644 --- a/tests/fetchhead/nonetwork.c +++ b/tests/fetchhead/nonetwork.c @@ -120,7 +120,7 @@ static int fetchhead_ref_cb(const char *name, const char *url, expected = git_vector_get(cb_data->fetchhead_vector, cb_data->idx); - cl_assert(git_oid_cmp(&expected->oid, oid) == 0); + cl_assert_equal_oid(&expected->oid, oid); cl_assert(expected->is_merge == is_merge); if (expected->ref_name) @@ -174,7 +174,7 @@ static int read_old_style_cb(const char *name, const char *url, cl_assert(name == NULL); cl_assert(url == NULL); - cl_assert(git_oid_cmp(&expected, oid) == 0); + cl_assert_equal_oid(&expected, oid); cl_assert(is_merge == 1); return 0; @@ -201,7 +201,7 @@ static int read_type_missing(const char *ref_name, const char *remote_url, cl_assert_equal_s("name", ref_name); cl_assert_equal_s("remote_url", remote_url); - cl_assert(git_oid_cmp(&expected, oid) == 0); + cl_assert_equal_oid(&expected, oid); cl_assert(is_merge == 0); return 0; @@ -228,7 +228,7 @@ static int read_name_missing(const char *ref_name, const char *remote_url, cl_assert(ref_name == NULL); cl_assert_equal_s("remote_url", remote_url); - cl_assert(git_oid_cmp(&expected, oid) == 0); + cl_assert_equal_oid(&expected, oid); cl_assert(is_merge == 0); return 0; |