diff options
author | Vicent Martà <tanoku@gmail.com> | 2012-04-02 17:23:17 -0700 |
---|---|---|
committer | Vicent Martà <tanoku@gmail.com> | 2012-04-02 17:23:17 -0700 |
commit | 4cba39ac58b0dca42e9c552343d05758dd32607d (patch) | |
tree | ab71f51c5439ffaedd4c6a964d00584a4800aa70 /tests-clar/notes/notes.c | |
parent | 5afe95d206b48848f2bde1006c8396a1791692e8 (diff) | |
parent | b173121555d398997d1e446dca59f589f4c4e126 (diff) | |
download | libgit2-4cba39ac58b0dca42e9c552343d05758dd32607d.tar.gz |
Merge pull request #615 from benstraub/port-all-tests-to-clar
Port all tests to clar
Diffstat (limited to 'tests-clar/notes/notes.c')
-rw-r--r-- | tests-clar/notes/notes.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests-clar/notes/notes.c b/tests-clar/notes/notes.c index 0e9a165a6..bb5a85dd1 100644 --- a/tests-clar/notes/notes.c +++ b/tests-clar/notes/notes.c @@ -33,11 +33,11 @@ void test_notes_notes__1(void) cl_git_pass(git_note_read(&_note, _repo, NULL, &oid)); - cl_assert(!strcmp(git_note_message(_note), "hello world\n")); + cl_assert_strequal(git_note_message(_note), "hello world\n"); cl_assert(!git_oid_cmp(git_note_oid(_note), ¬e_oid)); cl_git_pass(git_blob_lookup(&_blob, _repo, ¬e_oid)); - cl_assert(!strcmp(git_note_message(_note), git_blob_rawcontent(_blob))); + cl_assert_strequal(git_note_message(_note), git_blob_rawcontent(_blob)); cl_git_fail(git_note_create(¬e_oid, _repo, _sig, _sig, NULL, &oid, "hello world\n")); cl_git_fail(git_note_create(¬e_oid, _repo, _sig, _sig, "refs/notes/some/namespace", &oid, "hello world\n")); |