Update sourcepawn testing include to new syntax.
This commit is contained in:
parent
7ada5f957e
commit
52c7ef0f6f
@ -9,7 +9,7 @@
|
|||||||
* This program is free software; you can redistribute it and/or modify it under
|
* This program is free software; you can redistribute it and/or modify it under
|
||||||
* the terms of the GNU General Public License, version 3.0, as published by the
|
* the terms of the GNU General Public License, version 3.0, as published by the
|
||||||
* Free Software Foundation.
|
* Free Software Foundation.
|
||||||
*
|
*
|
||||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
||||||
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user