Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Depend on hspec and hspect-expectations for these APIs #35

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions spake2.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,9 @@ test-suite tasty
, protolude >=0.3 && <0.4
, spake2
, tasty
, hspec >= 2.10 && <3
, tasty-hspec
, hspec-expectations >= 0.8.2 && <0.9
other-modules:
Groups
Integration
Expand Down
5 changes: 4 additions & 1 deletion tests/Groups.hs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ import Protolude hiding (group)
import Crypto.Error (CryptoFailable(..))
import Test.QuickCheck (Gen, (===), arbitrary, forAll, property)
import Test.Tasty (TestTree)
import Test.Tasty.Hspec (Spec, testSpec, describe, it, shouldBe)
import Test.Tasty.Hspec (testSpec)

import Test.Hspec (Spec, describe, it)
import Test.Hspec.Expectations (shouldBe)

import Crypto.Spake2.Group (AbelianGroup(..), Group(..))
import Crypto.Spake2.Groups
Expand Down
6 changes: 5 additions & 1 deletion tests/Integration.hs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@ import qualified Data.ByteString.Char8 as Char8
import qualified System.IO as IO
import qualified System.Process as Process
import Test.Tasty (TestTree)
import Test.Tasty.Hspec (testSpec, describe, it, shouldBe)
import Test.Tasty.Hspec (testSpec)

import Test.Hspec (describe, it)
import Test.Hspec.Expectations (shouldBe)


import qualified Crypto.Spake2 as Spake2
import Crypto.Spake2.Group (Group(arbitraryElement))
Expand Down
6 changes: 5 additions & 1 deletion tests/Spake2.hs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@ module Spake2 (tests) where

import Protolude hiding (group)
import Test.Tasty (TestTree)
import Test.Tasty.Hspec (testSpec, describe, it, shouldBe, shouldNotBe)
import Test.Tasty.Hspec (testSpec)

import Test.Hspec (describe, it)
import Test.Hspec.Expectations (shouldBe, shouldNotBe)


import Crypto.Hash (SHA256(..))
import qualified Crypto.Spake2 as Spake2
Expand Down