Browse Source

Updated the clean up

netuttki 1 year ago
parent
commit
a97bb5683c
1 changed files with 9 additions and 9 deletions
  1. 9 9
      test/testframework.qsrc

+ 9 - 9
test/testframework.qsrc

@@ -63,14 +63,6 @@ if $ARGS[0] = 'assertEqualsStringArray':
 	RESULT = ARRSIZE($ARGS[1]) = ARRSIZE($ARGS[2])
 end
 
-if $ARGS[0] = 'cleanUpDefault':
-	killvar 'EXPECTED'
-	killvar 'ACTUAL'
-	killvar 'FUNCTIONNAME'
-	killvar 'TESTRESULT'
-end
-
-
 if $ARGS[0] = 'addTestResult':
 	$testResults[testCount] = "<<$TESTNAME>>; gs '<<$LOCATIONNAME>>', '<<$FUNCTIONNAME>>'" + iif($ARGUMENTS ! '', ', <<$ARGUMENTS>>', '') + "; <<$EXPECTED_MESSAGE>>; <<$ACTUAL_MESSAGE>>; "
 	if TESTRESULT ! 0:
@@ -121,7 +113,15 @@ if $ARGS[0] = 'saveTestResults':
 	savegame '<<$_TESTSUITE>>-Results-<<$_TESTFILETIME>>.test'
 end
 
-if $ARGS[0] = 'cleanUpTestData':
+if $ARGS[0] = 'cleanUpDefault':
+	killvar 'ARGUMENTS'
+	killvar 'EXPECTED'
+	killvar 'EXPECTED_MESSAGE'
+	killvar 'ACTUAL'
+	killvar 'ACTUAL_MESSAGE'
+	killvar 'FUNCTIONNAME'
+	killvar 'TESTRESULT'
+
 	killvar 'daystart'
 	killvar 'month'
 	killvar '$month'