diff options
author | Vicent Marti <vicent@github.com> | 2014-07-02 15:29:25 +0200 |
---|---|---|
committer | Vicent Marti <vicent@github.com> | 2014-07-02 15:29:25 +0200 |
commit | c1bf2942fcdc90883987c37a782b599d8969e747 (patch) | |
tree | 01b176117d561a3f3f2adf4c1147f7ffb0be8050 /tests/notes/notesref.c | |
parent | 4df4ebd7c772a6dca577fd2968d7f81e72e4cff2 (diff) | |
parent | 9879fee184adaace842ed4bb055fd2942d975591 (diff) | |
download | libgit2-c1bf2942fcdc90883987c37a782b599d8969e747.tar.gz |
Merge pull request #2455 from ethomson/equal_oid
Introduce `cl_assert_equal_oid`
Diffstat (limited to 'tests/notes/notesref.c')
-rw-r--r-- | tests/notes/notesref.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/notes/notesref.c b/tests/notes/notesref.c index a33141979..a59af209c 100644 --- a/tests/notes/notesref.c +++ b/tests/notes/notesref.c @@ -46,13 +46,13 @@ void test_notes_notesref__config_corenotesref(void) cl_git_pass(git_note_read(&_note, _repo, NULL, &oid)); cl_assert_equal_s("test123test\n", git_note_message(_note)); - cl_assert(!git_oid_cmp(git_note_id(_note), ¬e_oid)); + cl_assert_equal_oid(git_note_id(_note), ¬e_oid); git_note_free(_note); cl_git_pass(git_note_read(&_note, _repo, "refs/notes/mydefaultnotesref", &oid)); cl_assert_equal_s("test123test\n", git_note_message(_note)); - cl_assert(!git_oid_cmp(git_note_id(_note), ¬e_oid)); + cl_assert_equal_oid(git_note_id(_note), ¬e_oid); cl_git_pass(git_note_default_ref(&default_ref, _repo)); cl_assert_equal_s("refs/notes/mydefaultnotesref", default_ref); |