Update sourcepawn testing include to new syntax.

This commit is contained in:
Sean Lewis 2016-01-06 18:35:16 -06:00
parent 7ada5f957e
commit 52c7ef0f6f

View File

@ -30,15 +30,15 @@
* Version: $Id$ * Version: $Id$
*/ */
static TestNumber = 0; static int TestNumber = 0;
static String:TestContext[255]; static char TestContext[255];
SetTestContext(const String:context[]) stock void SetTestContext(const char[] context)
{ {
strcopy(TestContext, sizeof(TestContext), context); strcopy(TestContext, sizeof(TestContext), context);
} }
AssertEq(const String:text[], cell1, cell2) stock void AssertEq(const char[] text, int cell1, int cell2)
{ {
TestNumber++; TestNumber++;
if (cell1 == cell2) { if (cell1 == cell2) {
@ -49,7 +49,7 @@ AssertEq(const String:text[], cell1, cell2)
} }
} }
AssertFalse(const String:text[], bool:value) stock void AssertFalse(const char[] text, bool value)
{ {
TestNumber++; TestNumber++;
if (!value) { if (!value) {
@ -60,7 +60,7 @@ AssertFalse(const String:text[], bool:value)
} }
} }
AssertTrue(const String:text[], bool:value) stock void AssertTrue(const char[] text, bool value)
{ {
TestNumber++; TestNumber++;
if (value) { if (value) {