]> git.rkrishnan.org Git - functorrent.git/blobdiff - functorrent.cabal
Tests for decode
[functorrent.git] / functorrent.cabal
index e89c36c50d798d3bb34b8eba4fc23aae89d90037..ad385087ba6c79e58f5bc1e1b944abaa7d4e23f3 100644 (file)
@@ -26,8 +26,9 @@ library
   hs-source-dirs:      src
   ghc-options:         -Wall -fwarn-incomplete-patterns
   default-language:    Haskell2010
-  build-depends:       base,
-                       HTTP,
+  build-depends:       HTTP,
+                       HUnit,
+                       base,
                        base16-bytestring,
                        binary,
                        bytestring,
@@ -35,7 +36,9 @@ library
                        cryptohash,
                        doctest,
                        network-uri,
-                       parsec
+                       parsec,
+                       tasty,
+                       tasty-hunit
 
 executable functorrent
   main-is:             Main.hs
@@ -43,8 +46,8 @@ executable functorrent
   hs-source-dirs:      src
   ghc-options:         -Wall -fwarn-incomplete-patterns
   default-language:    Haskell2010
-  build-depends:       base,
-                       HTTP,
+  build-depends:       HTTP,
+                       base,
                        base16-bytestring,
                        binary,
                        bytestring,
@@ -53,3 +56,16 @@ executable functorrent
                        doctest,
                        network-uri,
                        parsec
+
+test-suite lisper-test
+  type:              exitcode-stdio-1.0
+  default-language:  Haskell2010
+  hs-source-dirs:    test
+  main-is:           Test.hs
+  build-depends:     HUnit,
+                     base,
+                     bytestring,
+                     containers,
+                     functorrent,
+                     tasty,
+                     tasty-hunit