summaryrefslogtreecommitdiff
path: root/tests-clar/notes/notes.c
diff options
context:
space:
mode:
authorBen Straub <ben@straubnet.net>2012-03-31 19:47:59 -0700
committerBen Straub <ben@straubnet.net>2012-03-31 19:47:59 -0700
commit20ec426ddeed994a0198756401b1138287813ad1 (patch)
treecc99e78faca0a589641830eae2d534d5672d07b4 /tests-clar/notes/notes.c
parentfd29cd13b70b9a3a90ca605e2d1a633a08f1daf7 (diff)
downloadlibgit2-20ec426ddeed994a0198756401b1138287813ad1.tar.gz
Discovered cl_git_strequal! Mounted a crusade!
Diffstat (limited to 'tests-clar/notes/notes.c')
-rw-r--r--tests-clar/notes/notes.c4
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), &note_oid));
cl_git_pass(git_blob_lookup(&_blob, _repo, &note_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(&note_oid, _repo, _sig, _sig, NULL, &oid, "hello world\n"));
cl_git_fail(git_note_create(&note_oid, _repo, _sig, _sig, "refs/notes/some/namespace", &oid, "hello world\n"));