Created
July 19, 2010 21:40
-
-
Save naush/482069 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 UI.TestMenu where | |
| import TestHelper | |
| import HUnit.HUnit | |
| import UI.Menu as Menu | |
| mockBoard = "+++++++++" | |
| mockFormatBoard board = board | |
| testPrint expected actual = expected == actual | |
| printBoard message = testPrint mockBoard message | |
| testPutBoard = TestCase (assertTrue "should call formatBoard and puts board," $ putBoard printBoard mockFormatBoard mockBoard) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment