RATDOG/_module/nss/nwnx_tests.nss
Jaysyn904 7a2452f20c Added NWNX & removed conflicting spell scripts
Added NWNX & removed conflicting spell scripts
2021-08-30 20:48:48 -04:00

22 lines
666 B
Plaintext

/// @ingroup nwnx
/// @addtogroup tests NWNX Tests
/// @brief Helper functions when running the test scripts
/// @{
/// @file nwnx_tests.nss
/// @brief Reports the test results
/// @param sPlugin The plugin calling the test.
/// @param sTestName The name of the test.
/// @param bSuccess TRUE if the test passed.
void NWNX_Tests_Report(string sPlugin, string sTestName, int bSuccess);
void NWNX_Tests_Report(string sPlugin, string sTestName, int bSuccess)
{
if (bSuccess)
WriteTimestampedLogEntry(sPlugin + ": " + sTestName + "() success");
else
WriteTimestampedLogEntry(sPlugin + ": " + sTestName + "() failed");
}
/// @} // End of tests