summaryrefslogtreecommitdiff
path: root/test/CuTest.h
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@lorry>2013-06-03 18:34:10 +0000
committerLorry Tar Creator <lorry-tar-importer@lorry>2013-06-03 18:34:10 +0000
commitf143c3cab79c59dd57124f19d16ac35253843136 (patch)
tree9fa67aa3d59e9d96f5f37858e95c4ab91960ea92 /test/CuTest.h
parent6f61a1acd01dc2ad1d2f5c1f7458702c77c69f9c (diff)
downloadlibserf-tarball-fb6ad73dfc340d81d364f2c8bf791bcf6e84fb67.tar.gz
Diffstat (limited to 'test/CuTest.h')
-rw-r--r--test/CuTest.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/CuTest.h b/test/CuTest.h
index 1895bec..930ae9c 100644
--- a/test/CuTest.h
+++ b/test/CuTest.h
@@ -90,6 +90,9 @@ void CuAssert_Line(CuTest* tc, const char* file, int line, const char* message,
void CuAssertStrEquals_LineMsg(CuTest* tc,
const char* file, int line, const char* message,
const char* expected, const char* actual);
+void CuAssertStrnEquals_LineMsg(CuTest* tc,
+ const char* file, int line, const char* message,
+ const char* expected, size_t explen, const char* actual);
void CuAssertIntEquals_LineMsg(CuTest* tc,
const char* file, int line, const char* message,
int expected, int actual);
@@ -108,6 +111,8 @@ void CuAssertPtrEquals_LineMsg(CuTest* tc,
#define CuAssertStrEquals(tc,ex,ac) CuAssertStrEquals_LineMsg((tc),__FILE__,__LINE__,NULL,(ex),(ac))
#define CuAssertStrEquals_Msg(tc,ms,ex,ac) CuAssertStrEquals_LineMsg((tc),__FILE__,__LINE__,(ms),(ex),(ac))
+#define CuAssertStrnEquals(tc,ex,exlen,ac) CuAssertStrnEquals_LineMsg((tc),__FILE__,__LINE__,NULL,(ex),(exlen),(ac))
+#define CuAssertStrnEquals_Msg(tc,ms,ex,exlen,ac) CuAssertStrnEquals_LineMsg((tc),__FILE__,__LINE__,(ms),(ex),(exlen),ac))
#define CuAssertIntEquals(tc,ex,ac) CuAssertIntEquals_LineMsg((tc),__FILE__,__LINE__,NULL,(ex),(ac))
#define CuAssertIntEquals_Msg(tc,ms,ex,ac) CuAssertIntEquals_LineMsg((tc),__FILE__,__LINE__,(ms),(ex),(ac))
#define CuAssertDblEquals(tc,ex,ac,dl) CuAssertDblEquals_LineMsg((tc),__FILE__,__LINE__,NULL,(ex),(ac),(dl))