Created
August 22, 2016 19:42
-
-
Save tibastral/40f975e868ed06f08c02a51c257e4f40 to your computer and use it in GitHub Desktop.
This file contains 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
all : Test | |
all = | |
describe "A Test Suite" | |
[ test "Collision" <| | |
\() -> | |
Expect.false "Collision didn't work" (Character.collision initialKoala initialFlag) | |
, test "CollisionPosition" <| | |
\() -> | |
Expect.false "Initial state of game is loosing" (Game.isLoosing Game.initial) | |
, test "CollisionPosition" <| | |
\() -> | |
let | |
loosingCharacter = | |
initialEnemy | |
initialGame = | |
Game.initial | |
loosingGame = | |
{ initialGame | character = loosingCharacter } | |
in | |
Expect.true "Loosing game didn't loose" (Game.isLoosing loosingGame) | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment