Created
August 19, 2015 15:16
-
-
Save alogic0/9517cfeb2ff63c6264a9 to your computer and use it in GitHub Desktop.
NPTEL Haskell 2015, HSpec test for Assignment 2
This file contains hidden or 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
module Nptel_ass2_test_hspec where | |
import Nptel_ass2 | |
import Test.Hspec | |
main :: IO () | |
main = hspec $ do | |
describe "Assignment 2" $ do | |
describe "ramanujan" $ do | |
it "Test Case 1" $ do | |
(ramanujan 1) `shouldBe` 1729 | |
it "Test Case 2" $ do | |
(ramanujan 2) `shouldBe` 4104 | |
it "Test Case 3" $ do | |
(ramanujan 3) `shouldBe` 13832 | |
it "Test Case 4" $ do | |
(ramanujan 4) `shouldBe` 20683 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment