packages feed

planet-mitchell-test (empty) → 0.0.0

raw patch · 8 files changed

+138/−0 lines, 8 filesdep +gaugedep +hedgehogdep +hspec-expectations

Dependencies added: gauge, hedgehog, hspec-expectations, tasty, tasty-hedgehog, tasty-hunit, tasty-rerun, weigh

Files

+ CHANGELOG.md view
@@ -0,0 +1,11 @@+# Changelog++All notable changes to this project will be documented in this file.++The format is based on [Keep a Changelog](http://keepachangelog.com/)+and this project adheres to the [Haskell Package Versioning Policy](https://pvp.haskell.org/).++## [0.1.0] - 2018-10-21++### Added+- Initial release
+ LICENSE view
@@ -0,0 +1,11 @@+Copyright 2018 Mitchell Rosen++Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:++1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.++2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.++3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.++THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ planet-mitchell-test.cabal view
@@ -0,0 +1,53 @@+cabal-version: 2.0++author: Mitchell Rosen+build-type: Simple+category: Prelude, Test+description:+  Companion package of <https://hackage.haskell.org/package/planet-mitchell planet-mitchell>,+  for testing and benchmarking.+license-file: LICENSE+license: BSD3+maintainer: Mitchell Rosen <mitchellwrosen@gmail.com>+name: planet-mitchell-test+synopsis: Planet Mitchell+tested-with: GHC == 8.4.3, GHC == 8.6.1+version: 0.0.0+homepage: https://github.com/mitchellwrosen/planet-mitchell+bug-reports: https://github.com/mitchellwrosen/planet-mitchell/issues+copyright: (c) 2018, Mitchell Rosen++extra-source-files:+  CHANGELOG.md++source-repository head+  type: git+  location: git://github.com/mitchellwrosen/planet-mitchell.git++library+  hs-source-dirs: src+  ghc-options:+    -Weverything+    -fno-warn-safe+    -fno-warn-unsafe+    -- TODO re-enable+    -fno-warn-missing-import-lists+  default-extensions: NoImplicitPrelude+  default-language: Haskell2010++  build-depends:+      gauge              >= 0.2.1  && < 0.2.2+    , hedgehog           >= 0.5.3  && < 0.6.1+    , hspec-expectations >= 0.8.2  && < 0.8.3+    , tasty              >= 1.1.0  && < 1.1.1+    , tasty-hedgehog     >= 0.2.0  && < 0.2.1+    , tasty-hunit        >= 0.10.0 && < 0.10.1+    , tasty-rerun        >= 1.1.13 && < 1.1.14+    , weigh              >= 0.0.12 && < 0.0.13++  exposed-modules:+    Benchmark+    Test+    Test.Gen+    Test.Range+    Weigh
+ src/Benchmark.hs view
@@ -0,0 +1,23 @@+module Benchmark+  ( -- * Running benchmarks+    defaultMain+    -- * Constructing benchmarks+    -- ** Benchmark+  , Benchmark+  , bench+  , bgroup+  , env+  , envWithCleanup+    -- ** Benchmarkable+  , Benchmarkable+  , nfIO+  , whnfIO+  , nf+  , whnf+  , perBatchEnv+  , perBatchEnvWithCleanup+  , perRunEnv+  , perRunEnvWithCleanup+  ) where++import Gauge
+ src/Test.hs view
@@ -0,0 +1,23 @@+module Test+  ( -- * Running tests+    defaultMain+  , defaultMainWithIngredients+  , defaultIngredients+  , rerunningTests+  , testGroup+    -- * Unit tests+  , testCase+  , shouldBe+  , shouldSatisfy+  , shouldReturn+    -- * Property tests+  , testProperty+  , module Hedgehog+  ) where++import Hedgehog+import Test.Hspec.Expectations+import Test.Tasty+import Test.Tasty.Hedgehog+import Test.Tasty.HUnit+import Test.Tasty.Ingredients.Rerun (rerunningTests)
+ src/Test/Gen.hs view
@@ -0,0 +1,5 @@+module Test.Gen+  ( module Hedgehog.Gen+  ) where++import Hedgehog.Gen
+ src/Test/Range.hs view
@@ -0,0 +1,5 @@+module Test.Range+  ( module Hedgehog.Range+  ) where++import Hedgehog.Range
+ src/Weigh.hs view
@@ -0,0 +1,7 @@+{-# LANGUAGE PackageImports #-}++module Weigh+  ( module X+  ) where++import "weigh" Weigh as X