diff options
author | rbb <rbb@13f79535-47bb-0310-9956-ffa450edef68> | 2002-12-19 01:49:18 +0000 |
---|---|---|
committer | rbb <rbb@13f79535-47bb-0310-9956-ffa450edef68> | 2002-12-19 01:49:18 +0000 |
commit | 2d9d6146caf65a1c14319b3eb0415226655656cb (patch) | |
tree | 13f8ef549b5825c6f4fe46181f59cfb8451dc7a3 /test/CuTest.h | |
parent | efa4fab832d8b3194f59a74baeb77360f1b1eef5 (diff) | |
download | libapr-2d9d6146caf65a1c14319b3eb0415226655656cb.tar.gz |
Add a CuAssertStrnEquals which does a strncmp instead of a strcmp. This
fixes a big in teststr.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64192 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/CuTest.h')
-rw-r--r-- | test/CuTest.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/CuTest.h b/test/CuTest.h index 638b0283e..e607d3ac9 100644 --- a/test/CuTest.h +++ b/test/CuTest.h @@ -86,6 +86,8 @@ void CuNotImpl(CuTest* tc, const char* message); void CuAssert(CuTest* tc, const char* message, int condition); void CuAssertTrue(CuTest* tc, int condition); void CuAssertStrEquals(CuTest* tc, const char* expected, const char* actual); +void CuAssertStrNEquals(CuTest* tc, const char* expected, const char* actual, + int n); void CuAssertIntEquals(CuTest* tc, int expected, int actual); void CuAssertPtrEquals(CuTest* tc, const void* expected, const void* actual); void CuAssertPtrNotNull(CuTest* tc, const void* pointer); |