Skip to content

Instantly share code, notes, and snippets.

@alogic0
Created August 19, 2015 15:16
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 alogic0/9517cfeb2ff63c6264a9 to your computer and use it in GitHub Desktop.
Save alogic0/9517cfeb2ff63c6264a9 to your computer and use it in GitHub Desktop.
NPTEL Haskell 2015, HSpec test for Assignment 2
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