Skip to content

Commit

Permalink
Fixes to Chapter 4 tests (kowainik#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
chshersh authored Sep 30, 2020
1 parent efc407e commit f3cc708
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/Test/Chapter4.hs
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ chapter4normal = describe "Chapter4Normal" $ do
it "reward <*> trap" $
Reward not <*> Trap 42 `shouldBe` Trap 42
it "reward <*> reward - same type" $
Reward not <*> Reward True `shouldBe` Trap False
Reward not <*> Reward True `shouldBe` (Reward False :: Secret String Bool)
it "reward <*> reward" $
Reward odd <*> Reward 42 `shouldBe` Trap False
Reward odd <*> Reward 42 `shouldBe` (Reward False :: Secret String Bool)
describe "Task6: Monad for Secret" $ do
it "Trap" $ (Trap "aaar" >>= halfSecret) `shouldBe` Trap "aaar"
it "Reward even" $ (Reward 42 >>= halfSecret) `shouldBe` Reward 21
Expand Down

0 comments on commit f3cc708

Please sign in to comment.