Bryan O'Sullivan avatar Bryan O'Sullivan committed 7438c09

Use Cabal's test support instead of our own crud.

Comments (0)

Files changed (4)

-^(?:cabal-dev|dist|benchmarks/dist|tests/dist)$
+^(?:cabal-dev|dist|benchmarks/dist)$
 ^demo/demo$
 \.(?:aux|eventlog|h[ip]|log|[oa]|orig|prof|ps|rej|swp)$
 ~$

double-conversion.cabal

     double-conversion/test/cctest/*.h
     double-conversion/test/cctest/SConscript
     include/*.h
-    tests/*.cabal
     tests/*.hs
 
 flag developer
   if impl(ghc >= 6.9) && impl(ghc < 6.11)
     build-depends: integer >= 0.1 && < 0.2
 
+test-suite tests
+  type: exitcode-stdio-1.0
+  hs-source-dirs: tests
+  main-is: Properties.hs
+  build-depends:
+    QuickCheck,
+    base,
+    double-conversion,
+    test-framework,
+    test-framework-quickcheck2,
+    text
+
 source-repository head
   type:     git
   location: https://github.com/mailrank/double-conversion

tests/Properties.hs

-import Data.Double.Conversion
+import Data.Double.Conversion.Text
 import Test.QuickCheck
 import Test.Framework (defaultMain, testGroup)
 import Test.Framework.Providers.QuickCheck2 (testProperty)

tests/double-conversion-tests.cabal

-name:           double-conversion-tests
-version:        0
-cabal-version:  >= 1.8
-build-type:     Simple
-
-executable qc
-  main-is: Properties.hs
-
-  build-depends:
-    QuickCheck,
-    base,
-    double-conversion,
-    test-framework,
-    test-framework-quickcheck2,
-    text >= 0.11.0.8
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.