mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-06 05:01:54 +00:00
index: user a better assertion when comparing sizes
This will tell us which numbers we were trying to compare, rather than just telling us that they're different.
This commit is contained in:
parent
a56db99234
commit
46c84c7260
@ -103,8 +103,8 @@ void test_index_tests__default_test_index(void)
|
||||
git_index_entry *e = entries[test_entries[i].index];
|
||||
|
||||
cl_assert_equal_s(e->path, test_entries[i].path);
|
||||
cl_assert(e->mtime.seconds == test_entries[i].mtime);
|
||||
cl_assert(e->file_size == test_entries[i].file_size);
|
||||
cl_assert_equal_i(e->mtime.seconds, test_entries[i].mtime);
|
||||
cl_assert_equal_i(e->file_size, test_entries[i].file_size);
|
||||
}
|
||||
|
||||
git_index_free(index);
|
||||
|
Loading…
Reference in New Issue
Block a user