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$
*/
static TestNumber = 0;
static String:TestContext[255];
static int TestNumber = 0;
static char TestContext[255];
SetTestContext(const String:context[])
stock void SetTestContext(const char[] context)
{
strcopy(TestContext, sizeof(TestContext), context);
}
AssertEq(const String:text[], cell1, cell2)
stock void AssertEq(const char[] text, int cell1, int cell2)
{
TestNumber++;
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++;
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++;
if (value) {