Commit 50d4688c by Etienne Samson

tests: add missing asserts

CID 1398597, 1398598
parent d9eae98b
...@@ -353,6 +353,7 @@ void test_index_crlf__safecrlf_true_autocrlf_input_text_auto_attr(void) ...@@ -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")); cl_git_pass(git_index_add_bypath(g_index, "newfile.txt"));
entry = git_index_get_bypath(g_index, "newfile.txt", 0); entry = git_index_get_bypath(g_index, "newfile.txt", 0);
cl_assert(entry);
cl_git_pass(git_oid_fromstr(&oid, FILE_OID_LF)); cl_git_pass(git_oid_fromstr(&oid, FILE_OID_LF));
cl_assert_equal_oid(&oid, &entry->id); cl_assert_equal_oid(&oid, &entry->id);
...@@ -373,6 +374,7 @@ void test_index_crlf__safecrlf_true_autocrlf_input_text__no_attr(void) ...@@ -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")); cl_git_pass(git_index_add_bypath(g_index, "newfile.txt"));
entry = git_index_get_bypath(g_index, "newfile.txt", 0); entry = git_index_get_bypath(g_index, "newfile.txt", 0);
cl_assert(entry);
cl_git_pass(git_oid_fromstr(&oid, FILE_OID_LF)); cl_git_pass(git_oid_fromstr(&oid, FILE_OID_LF));
cl_assert_equal_oid(&oid, &entry->id); cl_assert_equal_oid(&oid, &entry->id);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment