-
Notifications
You must be signed in to change notification settings - Fork 6
/
CardsTest.hs
29 lines (22 loc) · 867 Bytes
/
CardsTest.hs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
module Effpee.CardsTest (suite) where
import Effpee
import Effpee.Test
-- module under test
import Effpee.Cards
suite
= testGroup "Cards"
-- evalColor test cases
[ testCase "evalColor Diamonds == Red" $ Red @=? evalColor Diamonds
, testCase "evalColor Hearts == Red" $ Red @=? evalColor Hearts
, testCase "evalColor Clubs == Black" $ Black @=? evalColor Clubs
, testCase "evalColor Spades == Black" $ Black @=? evalColor Spades
-- scoreCard tests
-- TODO: write some example-based tests for scoreCard function to give you
-- enough confidence that it works given your chosen representation for Card
-- scoreHand tests
-- TODO: same as above but for scoreHand
-- cardDeckFull tests
-- TODO: same as above but for cardDeckFull
-- cardDeckValid tests
-- TODO: same as above but for cardDeckValid
]