Skip to content

Commit

Permalink
tests: add missing asserts
Browse files Browse the repository at this point in the history
CID 1398597, 1398598
  • Loading branch information
tiennou committed Jan 4, 2019
1 parent d9eae98 commit 50d4688
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/index/crlf.c
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,7 @@ void test_index_crlf__safecrlf_true_autocrlf_input_text_auto_attr(void)

cl_git_pass(git_index_add_bypath(g_index, "newfile.txt"));
entry = git_index_get_bypath(g_index, "newfile.txt", 0);
cl_assert(entry);

cl_git_pass(git_oid_fromstr(&oid, FILE_OID_LF));
cl_assert_equal_oid(&oid, &entry->id);
Expand All @@ -373,6 +374,7 @@ void test_index_crlf__safecrlf_true_autocrlf_input_text__no_attr(void)

cl_git_pass(git_index_add_bypath(g_index, "newfile.txt"));
entry = git_index_get_bypath(g_index, "newfile.txt", 0);
cl_assert(entry);

cl_git_pass(git_oid_fromstr(&oid, FILE_OID_LF));
cl_assert_equal_oid(&oid, &entry->id);
Expand Down

0 comments on commit 50d4688

Please sign in to comment.