aboutsummaryrefslogtreecommitdiffstats
path: root/test/Spec.hs
diff options
context:
space:
mode:
Diffstat (limited to 'test/Spec.hs')
-rw-r--r--test/Spec.hs7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/Spec.hs b/test/Spec.hs
index cd4753f..12eed81 100644
--- a/test/Spec.hs
+++ b/test/Spec.hs
@@ -1,2 +1,7 @@
+import Test.Hspec
+
main :: IO ()
-main = putStrLn "Test suite not yet implemented"
+main = hspec $ do
+ describe "Prelude.head" $ do
+ it "returns the first element of a list" $ do
+ head [23 ..] `shouldBe` (23 :: Int)