mirror of
https://github.com/ennorehling/cutest.git
synced 2024-12-22 07:52:21 +00:00
make this a little more compatible with c99
This commit is contained in:
parent
b5910573d0
commit
30c0fed288
@ -2,8 +2,8 @@
|
|||||||
|
|
||||||
#include "CuTest.h"
|
#include "CuTest.h"
|
||||||
|
|
||||||
CuSuite* CuGetSuite();
|
CuSuite* CuGetSuite(void);
|
||||||
CuSuite* CuStringGetSuite();
|
CuSuite* CuStringGetSuite(void);
|
||||||
|
|
||||||
int RunAllTests(void)
|
int RunAllTests(void)
|
||||||
{
|
{
|
||||||
|
@ -213,7 +213,7 @@ void TestCuAssertPtrEquals_Failure(CuTest* tc)
|
|||||||
CuTestInit(&tc2, "MyTest", TestPasses);
|
CuTestInit(&tc2, "MyTest", TestPasses);
|
||||||
|
|
||||||
/* test failing case */
|
/* test failing case */
|
||||||
sprintf(expected_message, "expected pointer <0x%p> but was <0x%p>", nullPtr, &x);
|
sprintf(expected_message, "expected pointer <0x%p> but was <0x%p>", (void*)nullPtr, (void*)&x);
|
||||||
CuAssertPtrEquals(&tc2, NULL, &x);
|
CuAssertPtrEquals(&tc2, NULL, &x);
|
||||||
CuAssertTrue(tc, tc2.failed);
|
CuAssertTrue(tc, tc2.failed);
|
||||||
CompareAsserts(tc, "CuAssertPtrEquals failed", expected_message, tc2.message);
|
CompareAsserts(tc, "CuAssertPtrEquals failed", expected_message, tc2.message);
|
||||||
|
Loading…
Reference in New Issue
Block a user