From bbc48d03e6d0c7b87fb4c706454cb7b1a00e7464 Mon Sep 17 00:00:00 2001 From: Alexey Kuleshevich Date: Sat, 14 Dec 2024 08:21:17 -0700 Subject: [PATCH] Remove doctests as a separate test suite section --- Color/Color.cabal | 19 ------------------- Color/tests/doctests.hs | 16 ---------------- 2 files changed, 35 deletions(-) delete mode 100644 Color/tests/doctests.hs diff --git a/Color/Color.cabal b/Color/Color.cabal index fb12d4f..3db23b8 100644 --- a/Color/Color.cabal +++ b/Color/Color.cabal @@ -160,25 +160,6 @@ test-suite tests -threaded -freduction-depth=0 -test-suite doctests - type: exitcode-stdio-1.0 - hs-source-dirs: tests - main-is: doctests.hs - build-depends: base - if impl(ghc >= 8.2) && impl(ghc < 8.10) - build-depends: doctest >=0.16 - , QuickCheck - , Color - , JuicyPixels - default-language: Haskell2010 - ghc-options: -Wall - -Wincomplete-record-updates - -Wincomplete-uni-patterns - -Wredundant-constraints - -fno-warn-orphans - -threaded - - benchmark conversion type: exitcode-stdio-1.0 hs-source-dirs: bench diff --git a/Color/tests/doctests.hs b/Color/tests/doctests.hs deleted file mode 100644 index c876c04..0000000 --- a/Color/tests/doctests.hs +++ /dev/null @@ -1,16 +0,0 @@ -{-# LANGUAGE CPP #-} -module Main where - -#if __GLASGOW_HASKELL__ >= 802 && __GLASGOW_HASKELL__ < 810 - -import Test.DocTest (doctest) - -main :: IO () -main = doctest ["src"] - -#else - -main :: IO () -main = putStrLn "\nDoctests are not supported for older ghc version\n" - -#endif