From 8fa0afd0e2992067d839ae476a66764e90757864 Mon Sep 17 00:00:00 2001 From: Jonathan Lamothe Date: Mon, 18 Apr 2022 15:29:57 -0400 Subject: [PATCH] use hspec --- csv-slurp.cabal | 1 + package.yaml | 1 + test/Spec.hs | 26 +++++++++++++++++++++++++- 3 files changed, 27 insertions(+), 1 deletion(-) diff --git a/csv-slurp.cabal b/csv-slurp.cabal index da5af64..a66f224 100644 --- a/csv-slurp.cabal +++ b/csv-slurp.cabal @@ -43,5 +43,6 @@ test-suite csv-slurp-test build-depends: base >=4.7 && <5 , csv-slurp + , hspec >=2.8.5 && <2.9 default-language: Haskell2010 autogen-modules: Paths_csv_slurp diff --git a/package.yaml b/package.yaml index 10f4321..1dc1f2c 100644 --- a/package.yaml +++ b/package.yaml @@ -39,5 +39,6 @@ tests: - -with-rtsopts=-N dependencies: - csv-slurp + - hspec >= 2.8.5 && < 2.9 verbatim: <<: *paths diff --git a/test/Spec.hs b/test/Spec.hs index cd4753f..a4895a0 100644 --- a/test/Spec.hs +++ b/test/Spec.hs @@ -1,2 +1,26 @@ +{- + +csv-slurp +Copyright (C) Jonathan Lamothe + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or (at +your option) any later version. + +This program is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . + +-} + +import Test.Hspec (hspec) + main :: IO () -main = putStrLn "Test suite not yet implemented" +main = hspec $ return () + +--jl