on master help sign in
added info to cabal file for test-framework/quickcheck
commitb87f9665b4ce0d6ca280be23293268b4ec85831f authortechtangents <dylan@techtangents.com> dateTue 12 Mar 2013, 22:30 (14 years ago) parent9f1ff4e
2 files changed+50−1
elm/Elm.cabal+30−1 elm/tests/Main.hs+20
elm/Elm.cabal+30−1
@@ -122,4 +122,33 @@ Executable elm
122122 bytestring,
123123 hjsmin,
124124 indents,
125− filepath
125+ filepath
126+
127+
128+test-suite Main
129+ type: exitcode-stdio-1.0
130+ x-uses-tf: true
131+
132+ build-depends: base >=4.2 && <5,
133+ containers >= 0.3,
134+ transformers >= 0.2,
135+ mtl >= 2,
136+ parsec >= 3.1.1,
137+ blaze-html == 0.5.*,
138+ blaze-markup == 0.5.1.*,
139+ deepseq,
140+ text,
141+ template-haskell,
142+ shakespeare >= 1,
143+ pandoc >= 1.10,
144+ bytestring,
145+ hjsmin,
146+ indents,
147+ filepath,
148+
149+ QuickCheck >= 2.4,
150+ test-framework >= 0.4.1,
151+ test-framework-quickcheck2
152+
153+ hs-source-dirs: src, tests
154+ main-is: Main.hs
elm/tests/Main.hsnew file+20
@@ -0,0 +1,20 @@
1+module Main where
2+
3+import Test.Framework as TF (defaultMain, testGroup, Test)
4+import Test.Framework.Providers.QuickCheck2 (testProperty)
5+
6+import Data.Maybe (listToMaybe)
7+import Data.Functor.Identity
8+
9+main :: IO ()
10+main = defaultMain tests
11+
12+tests :: [TF.Test]
13+tests = [
14+ testGroup "The" [
15+ testProperty "prop_blah" prop_blah
16+ ]
17+ ]
18+
19+prop_blah :: Bool -> Bool
20+prop_blah _ = True