Nim tests in place now.

This commit is contained in:
Productive2 2021-01-29 20:11:06 +01:00
parent 8d93c3602f
commit 8eb33fe93a
3 changed files with 16 additions and 1 deletions

View File

@ -1,5 +1,9 @@
# Just Another Test Suite for running JAPL tests
import nim/nimtests
when isMainModule:
runNimTests()
import ../src/vm
import testutils
@ -138,6 +142,7 @@ when isMainModule:
jatr = "tests" / jatr
testDir = "tests" / testDir
log(LogLevel.Info, &"Running JAPL tests.")
log(LogLevel.Info, &"Building tests...")
let tests: seq[Test] = buildTests(testDir)
log(LogLevel.Debug, &"Tests built.")

View File

@ -15,7 +15,7 @@
# Tests that our multibyte module works
import ../src/multibyte
import ../../src/multibyte
template testMultibyte* =

10
tests/nim/nimtests.nim Normal file
View File

@ -0,0 +1,10 @@
import multibyte
import ../testutils
proc runNimTests* =
log(LogLevel.Info, "Running nim tests.")
testMultibyte()
log(LogLevel.Debug, "Nim tests finished")
when isMainModule:
runNimTests()