mirror of
https://github.com/ennorehling/cutest.git
synced 2024-12-21 23:52:20 +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"
|
||||
|
||||
CuSuite* CuGetSuite();
|
||||
CuSuite* CuStringGetSuite();
|
||||
CuSuite* CuGetSuite(void);
|
||||
CuSuite* CuStringGetSuite(void);
|
||||
|
||||
int RunAllTests(void)
|
||||
{
|
||||
|
@ -213,7 +213,7 @@ void TestCuAssertPtrEquals_Failure(CuTest* tc)
|
||||
CuTestInit(&tc2, "MyTest", TestPasses);
|
||||
|
||||
/* 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);
|
||||
CuAssertTrue(tc, tc2.failed);
|
||||
CompareAsserts(tc, "CuAssertPtrEquals failed", expected_message, tc2.message);
|
||||
|
Loading…
Reference in New Issue
Block a user