Skip to content

Instantly share code, notes, and snippets.

@naush
Created July 18, 2010 03:50
Show Gist options
  • Save naush/480096 to your computer and use it in GitHub Desktop.
Save naush/480096 to your computer and use it in GitHub Desktop.
module Board.TestBoard where
import Board.Board
import Board.Mark
import HUnit.HUnit
testBoard = [empty, o, empty, empty, empty, empty, empty, empty, empty]
testIsEmpty = TestCase (assertEqual "should return true if the given index on board is marked empty," True (isEmpty testBoard 0))
testIsNotEmpty = TestCase (assertEqual "should return false if the given index on board is not marked empty," False (isEmpty testBoard 1))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment