Skip to content
This repository has been archived by the owner on Jun 22, 2018. It is now read-only.

Commit

Permalink
start writing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mrkkrp committed Dec 25, 2015
1 parent bfde531 commit c8be33f
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 2 deletions.
6 changes: 5 additions & 1 deletion slug.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,11 @@ test-suite tests
ghc-options: -Wall -Werror
else
ghc-options: -O2 -Wall
build-depends: base >= 4.6 && < 5
build-depends: base >= 4.6 && < 5
, slug >= 0.1
, QuickCheck >= 2.4 && < 3
, test-framework >= 0.6 && < 1
, test-framework-quickcheck2 >= 0.3 && < 0.4
default-language: Haskell2010

source-repository head
Expand Down
37 changes: 36 additions & 1 deletion tests/Main.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,39 @@
-- -*- Mode: Haskell; -*-
--
-- Slug tests.
--
-- Copyright © 2015 Mark Karpov
--
-- Redistribution and use in source and binary forms, with or without
-- modification, are permitted provided that the following conditions are
-- met:
--
-- * Redistributions of source code must retain the above copyright notice,
-- this list of conditions and the following disclaimer.
--
-- * 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.
--
-- * Neither the name Mark Karpov nor the names of 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 “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 HOLDERS 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.

module Main (main) where

import Test.Framework (defaultMain)

main :: IO ()
main = undefined
main = defaultMain []

0 comments on commit c8be33f

Please sign in to comment.