Skip to content

Instantly share code, notes, and snippets.

@tibastral
Created August 22, 2016 19:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tibastral/40f975e868ed06f08c02a51c257e4f40 to your computer and use it in GitHub Desktop.
Save tibastral/40f975e868ed06f08c02a51c257e4f40 to your computer and use it in GitHub Desktop.
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