Now -h and -v options dont run any tests ;)

This commit is contained in:
Productive2 2021-01-29 20:15:34 +01:00
parent bc7ba95baa
commit 4137497963
1 changed files with 3 additions and 2 deletions

View File

@ -1,8 +1,6 @@
# Just Another Test Suite for running JAPL tests
import nim/nimtests
when isMainModule:
runNimTests()
import ../src/vm
import testutils
@ -136,7 +134,10 @@ when isMainModule:
elif paramStr(1) == "-v":
echo "JATS v" & $jatsVersion
quit(0)
log(LogLevel.Debug, &"Welcome to JATS")
runNimTests()
var jatr = "jatr"
var testDir = "japl"
if not fileExists(jatr) and fileExists("tests" / jatr):