Skip to content

Commit

Permalink
Untie test suite from bytestring
Browse files Browse the repository at this point in the history
  • Loading branch information
Bodigrim authored and HuwCampbell committed Nov 18, 2020
1 parent 51c229b commit b22a539
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
1 change: 0 additions & 1 deletion optparse-applicative.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ test-suite tests
, Examples.Hello

build-depends: base
, bytestring >= 0.9 && < 0.11
, optparse-applicative
, QuickCheck >= 2.8 && < 2.15

Expand Down
11 changes: 0 additions & 11 deletions tests/test.hs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ import qualified Examples.Formatting as Formatting

import Control.Applicative
import Control.Monad
import Data.ByteString (ByteString)
import qualified Data.ByteString.Char8 as BS8
import Data.List hiding (group)
import Data.List.NonEmpty (NonEmpty ((:|)))
import Data.Semigroup hiding (option)
Expand Down Expand Up @@ -768,15 +766,6 @@ prop_suggest = once $
in counterexample msg
$ isInfixOf "Did you mean one of these?\n first\n fst" msg

prop_bytestring_reader :: Property
prop_bytestring_reader = once $
let t = "testValue"
p :: Parser ByteString
p = argument str idm
i = info p idm
result = run i ["testValue"]
in assertResult result $ \xs -> BS8.pack t === xs

prop_grouped_some_option_ellipsis :: Property
prop_grouped_some_option_ellipsis = once $
let x :: Parser String
Expand Down

0 comments on commit b22a539

Please sign in to comment.