This commit is contained in:
2019-10-25 21:24:25 +02:00
commit dcddb96f93
4 changed files with 71 additions and 0 deletions

1
tests/config.nims Normal file
View File

@@ -0,0 +1 @@
switch("path", "$projectDir/../src")

15
tests/test1.nim Normal file
View File

@@ -0,0 +1,15 @@
# This is just an example to get you started. You may wish to put all of your
# tests into a single file, or separate them into multiple `test1`, `test2`
# etc. files (better names are recommended, just make sure the name starts with
# the letter 't').
#
# To run these tests, simply execute `nimble test`.
import unittest
import libmttt
test "debugging":
var metaBoard = createBoard()
metaBoard[0][0][1][1] = mPlayer1
echo metaBoard[0][0].checkBoard()