diff options
author | Carlos Martín Nieto <cmn@dwim.me> | 2015-06-19 21:56:42 +0200 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2015-06-19 21:56:42 +0200 |
commit | 46c84c72600c0aed379e0df659ad1ca518fdd7cb (patch) | |
tree | 298cd5ad131f249adc5e7bbac6700bbae2136f57 | |
parent | a56db99234017eb7814258dfe8bcdec365417a3b (diff) | |
download | libgit2-46c84c72600c0aed379e0df659ad1ca518fdd7cb.tar.gz |
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.
-rw-r--r-- | tests/index/tests.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/index/tests.c b/tests/index/tests.c index 3c8060a2e..e1ff12ad0 100644 --- a/tests/index/tests.c +++ b/tests/index/tests.c @@ -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); |