Created
July 18, 2010 03:50
-
-
Save naush/480096 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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