mighty-metropolis

The classic Metropolis algorithm.
Log | Files | Refs | README | LICENSE

commit fe0b2814c7f8c71fefcddc432bf9e01fa6dbbd8c
parent 027b9153d054b6bf192bfc18587dc3171a234270
Author: Alex Zarebski <aezarebski@gmail.com>
Date:   Wed, 13 May 2020 23:59:33 +0100

include hspec testing

Diffstat:
Mmighty-metropolis.cabal | 14++++++++++++++
Atest/test/Spec.hs | 8++++++++
2 files changed, 22 insertions(+), 0 deletions(-)

diff --git a/mighty-metropolis.cabal b/mighty-metropolis.cabal @@ -71,3 +71,16 @@ Test-suite bnn , mighty-metropolis , mwc-probability >= 1.0.1 +Test-suite tests + type: exitcode-stdio-1.0 + hs-source-dirs: test/test + main-is: Spec.hs + default-language: Haskell2010 + ghc-options: + -rtsopts + build-depends: + base >= 4 && < 6 + , containers >= 0.5 && < 0.6 + , mighty-metropolis + , mwc-probability >= 1.0.1 + , hspec +\ No newline at end of file diff --git a/test/test/Spec.hs b/test/test/Spec.hs @@ -0,0 +1,8 @@ +import Test.Hspec + + +main :: IO () +main = hspec $ do + describe "Prelude.head" $ do + it "returns the first element of a list" $ do + head [23 ..] `shouldBe` (23 :: Int)