diff options
author | Andrei Karas <akaras@inbox.ru> | 2019-05-13 23:17:23 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2019-05-13 23:17:23 +0300 |
commit | d887701df743a8e4469b37cabfa260c4529ac89a (patch) | |
tree | 4fe4e2a082ce6b2fb5db12dd7c69d6c7d5569722 /npc/dev | |
parent | 913383b9f1078e8c1fd5f5db8a0698501d4b14f7 (diff) | |
download | serverdata-d887701df743a8e4469b37cabfa260c4529ac89a.tar.gz serverdata-d887701df743a8e4469b37cabfa260c4529ac89a.tar.bz2 serverdata-d887701df743a8e4469b37cabfa260c4529ac89a.tar.xz serverdata-d887701df743a8e4469b37cabfa260c4529ac89a.zip |
Update from hercules
Diffstat (limited to 'npc/dev')
-rw-r--r-- | npc/dev/test.txt | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/npc/dev/test.txt b/npc/dev/test.txt index e9058aee..f98651df 100644 --- a/npc/dev/test.txt +++ b/npc/dev/test.txt @@ -730,10 +730,10 @@ function script HerculesSelfTestHelper { callsub(OnCheckStr, "sprintf (positional)", sprintf("'%2$s' '%1$c'", "First", "Second"), "'Second' 'F'"); if (.errors) { - debugmes "Script engine self-test [ \033[0;31mFAILED\033[0m ]"; - debugmes "**** The test was completed with " + .errors + " errors. ****"; + consolemes(CONSOLEMES_DEBUG, "Script engine self-test [ \033[0;31mFAILED\033[0m ]"); + consolemes(CONSOLEMES_ERROR, "**** The test was completed with " + .errors + " errors. ****"); } else { - debugmes "Script engine self-test [ \033[0;32mPASSED\033[0m ]"; + consolemes(CONSOLEMES_DEBUG, "Script engine self-test [ \033[0;32mPASSED\033[0m ]"); } return .errors; end; @@ -778,8 +778,8 @@ OnReportError: .@val$ = getarg(1,""); .@ref$ = getarg(2,""); if (.errors == 1) - debugmes "**** WARNING: Any self-test results past this point are unreliable because of previous errors. ****"; - debugmes "Error: "+.@msg$+": '"+.@val$+"' (found) != '"+.@ref$+"' (expected)"; + consolemes(CONSOLEMES_ERROR, "**** WARNING: Any self-test results past this point are unreliable because of previous errors. ****"); + consolemes(CONSOLEMES_ERROR, "Error: "+.@msg$+": '"+.@val$+"' (found) != '"+.@ref$+"' (expected)"); ++.errors; //end; return; |