I was handed the following code inside a validation
folder:
Spec.hs
-- #############################################################################
-- ########## VALIDATION TESTS #############
-- ########## (DO NOT CHANGE ANYTHING) #############
-- ########## Note: execute tests using "stack test ploy:validate #############
-- #############################################################################
import Test.Hspec
import Board
( buildBoard,
line,
validateFEN,
Board,
Cell(Empty, Piece),
Player(Black, White),
Pos(Pos) )
import Ploy ( gameFinished, isValidMove, listMoves, Move(Move), possibleMoves )
main :: IO ()
main = hspec $ do
testValidateFEN
testBuildBoard
testLine
testGameFinished
testIsValidMove
testPossibleMoves
testListMoves
and the following inside a test
folder:
Spec.hs
-- #############################################################################
-- ########### YOUR UNIT TESTS ##############
-- ########### Note: execute tests using "stack test ploy:units" ##############
-- #############################################################################
main :: IO ()
main = putStrLn "Units tests not yet implemented"
So, could someone tell me whatâs the difference between those two. I should implement unit tests but it seems they are the same as validation tests.