diff options
author | Edward Thomson <ethomson@microsoft.com> | 2014-03-07 00:28:18 -0800 |
---|---|---|
committer | Edward Thomson <ethomson@microsoft.com> | 2014-03-07 00:28:18 -0800 |
commit | 806571f3523d64be51e541705da580f28ea8f9a9 (patch) | |
tree | b0825202dee511ae7caa64cbb87c7054fba8a2e6 /tests/clar.h | |
parent | 8e5247203720de7abd084996c00afd6fb6f6cc21 (diff) | |
download | libgit2-806571f3523d64be51e541705da580f28ea8f9a9.tar.gz |
Update clar to a0b00f0
Diffstat (limited to 'tests/clar.h')
-rw-r--r-- | tests/clar.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/clar.h b/tests/clar.h index e1f244eba..7f77f7502 100644 --- a/tests/clar.h +++ b/tests/clar.h @@ -60,6 +60,9 @@ void cl_fixture_cleanup(const char *fixture_name); #define cl_assert_equal_s(s1,s2) clar__assert_equal(__FILE__,__LINE__,"String mismatch: " #s1 " != " #s2, 1, "%s", (s1), (s2)) #define cl_assert_equal_s_(s1,s2,note) clar__assert_equal(__FILE__,__LINE__,"String mismatch: " #s1 " != " #s2 " (" #note ")", 1, "%s", (s1), (s2)) +#define cl_assert_equal_strn(s1,s2,len) clar__assert_equal(__FILE__,__LINE__,"String mismatch: " #s1 " != " #s2, 1, "%.*s", (s1), (s2), (size_t)(len)) +#define cl_assert_equal_strn_(s1,s2,len,note) clar__assert_equal(__FILE__,__LINE__,"String mismatch: " #s1 " != " #s2 " (" #note ")", 1, "%.*s", (s1), (s2), (size_t)(len)) + #define cl_assert_equal_i(i1,i2) clar__assert_equal(__FILE__,__LINE__,#i1 " != " #i2, 1, "%d", (int)(i1), (int)(i2)) #define cl_assert_equal_i_(i1,i2,note) clar__assert_equal(__FILE__,__LINE__,#i1 " != " #i2 " (" #note ")", 1, "%d", (i1), (i2)) #define cl_assert_equal_i_fmt(i1,i2,fmt) clar__assert_equal(__FILE__,__LINE__,#i1 " != " #i2, 1, (fmt), (int)(i1), (int)(i2)) |