diff options
author | Vicent Martà <vicent@github.com> | 2013-01-25 20:37:39 -0800 |
---|---|---|
committer | Vicent Martà <vicent@github.com> | 2013-01-25 20:37:39 -0800 |
commit | 4adb4815bf4be623f765b593e3a3d50ab9710aab (patch) | |
tree | a50802fa1a16b1605880216e39add4cf46b0076a /tests-clar/notes/notesref.c | |
parent | 28db9f216da1da7955118a80c6eacaf7bf5dfac9 (diff) | |
parent | a7f8065f8cd3d635264b3bfdb93cd0c22bb960a4 (diff) | |
download | libgit2-4adb4815bf4be623f765b593e3a3d50ab9710aab.tar.gz |
Merge pull request #1278 from sba1/cl-assert-equal-s
Use cl_assert_equal_s() instead of strcmp().
Diffstat (limited to 'tests-clar/notes/notesref.c')
-rw-r--r-- | tests-clar/notes/notesref.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests-clar/notes/notesref.c b/tests-clar/notes/notesref.c index 633628c69..c89b71ba5 100644 --- a/tests-clar/notes/notesref.c +++ b/tests-clar/notes/notesref.c @@ -45,20 +45,20 @@ void test_notes_notesref__config_corenotesref(void) cl_git_pass(git_note_create(¬e_oid, _repo, _sig, _sig, NULL, &oid, "test123test\n", 0)); cl_git_pass(git_note_read(&_note, _repo, NULL, &oid)); - cl_assert(!strcmp(git_note_message(_note), "test123test\n")); + cl_assert_equal_s("test123test\n", git_note_message(_note)); cl_assert(!git_oid_cmp(git_note_oid(_note), ¬e_oid)); git_note_free(_note); cl_git_pass(git_note_read(&_note, _repo, "refs/notes/mydefaultnotesref", &oid)); - cl_assert(!strcmp(git_note_message(_note), "test123test\n")); + cl_assert_equal_s("test123test\n", git_note_message(_note)); cl_assert(!git_oid_cmp(git_note_oid(_note), ¬e_oid)); cl_git_pass(git_note_default_ref(&default_ref, _repo)); - cl_assert(!strcmp(default_ref, "refs/notes/mydefaultnotesref")); + cl_assert_equal_s("refs/notes/mydefaultnotesref", default_ref); cl_git_pass(git_config_delete_entry(_cfg, "core.notesRef")); cl_git_pass(git_note_default_ref(&default_ref, _repo)); - cl_assert(!strcmp(default_ref, GIT_NOTES_DEFAULT_REF)); + cl_assert_equal_s(GIT_NOTES_DEFAULT_REF, default_ref); } |