diff options
| author | Sebastian Bauer <mail@sebastianbauer.info> | 2013-01-25 06:48:55 +0100 |
|---|---|---|
| committer | Sebastian Bauer <mail@sebastianbauer.info> | 2013-01-25 06:55:56 +0100 |
| commit | a7f8065f8cd3d635264b3bfdb93cd0c22bb960a4 (patch) | |
| tree | 9b1b94a44b99e918b0063285c640115b4fdc4659 /tests-clar/index/conflicts.c | |
| parent | c9e9640356f4c56fdb86d3313a5a7dcf282b7391 (diff) | |
| download | libgit2-a7f8065f8cd3d635264b3bfdb93cd0c22bb960a4.tar.gz | |
Use cl_assert_equal_s() instead of strcmp().
Replaced all cl_assert(!strcmp()) or semantically equivalent forms
by cl_assert_equal_s().
Diffstat (limited to 'tests-clar/index/conflicts.c')
| -rw-r--r-- | tests-clar/index/conflicts.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests-clar/index/conflicts.c b/tests-clar/index/conflicts.c index 4b8a0cffd..7eee496de 100644 --- a/tests-clar/index/conflicts.c +++ b/tests-clar/index/conflicts.c @@ -104,7 +104,7 @@ void test_index_conflicts__get(void) cl_git_pass(git_index_conflict_get(&conflict_entry[0], &conflict_entry[1], &conflict_entry[2], repo_index, "conflicts-one.txt")); - cl_assert(strcmp(conflict_entry[0]->path, "conflicts-one.txt") == 0); + cl_assert_equal_s("conflicts-one.txt", conflict_entry[0]->path); git_oid_fromstr(&oid, CONFLICTS_ONE_ANCESTOR_OID); cl_assert(git_oid_cmp(&conflict_entry[0]->oid, &oid) == 0); @@ -118,7 +118,7 @@ void test_index_conflicts__get(void) cl_git_pass(git_index_conflict_get(&conflict_entry[0], &conflict_entry[1], &conflict_entry[2], repo_index, "conflicts-two.txt")); - cl_assert(strcmp(conflict_entry[0]->path, "conflicts-two.txt") == 0); + cl_assert_equal_s("conflicts-two.txt", conflict_entry[0]->path); git_oid_fromstr(&oid, CONFLICTS_TWO_ANCESTOR_OID); cl_assert(git_oid_cmp(&conflict_entry[0]->oid, &oid) == 0); |
