Skip to content

Commit

Permalink
add test chapter 1 task 7 (kowainik#139)
Browse files Browse the repository at this point in the history
* add test chapter 1 task 7

* add test task7 negatives mix
  • Loading branch information
krivtsov authored Oct 8, 2020
1 parent 7853765 commit ce4dd66
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/Test/Chapter1.hs
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,10 @@ chapter1normal = describe "Chapter1Normal" $ do
describe "Task7: mid" $ do
it "positives up " $ mid 10 20 30 `shouldBe` 20
it "positives down" $ mid 30 20 10 `shouldBe` 20
it "positives mix " $ mid 20 30 10 `shouldBe` 20
it "negatives down" $ mid (-10) (-20) (-30) `shouldBe` (-20)
it "negatives up " $ mid (-30) (-20) (-10) `shouldBe` (-20)
it "negatives mix " $ mid (-20) (-30) (-10) `shouldBe` (-20)
it "all equal" $ mid 1 1 1 `shouldBe` 1
it "all equal, except 1" $ mid 1 1 2 `shouldBe` 1
describe "Task8: isVowel" $ do
Expand Down

0 comments on commit ce4dd66

Please sign in to comment.