@@ -11,27 +11,27 @@ module Test.Cli.Parser
1111 )
1212where
1313
14- import Cardano.Api (Lovelace )
14+ import Cardano.Api (Lovelace )
1515import qualified Cardano.Api.Ledger as L
16- import Cardano.CLI.EraBased.Options.Common (integralParsecParser ,
17- pUrl ,
18- pairIntegralParsecParser ,
19- parseLovelace )
20-
21- import Data.Bits (Bits )
22- import Data.Data (Proxy (.. ), Typeable )
23- import Data.Either (isLeft , isRight )
24- import Data.Maybe (isJust , isNothing )
25- import Data.Word (Word16 , Word64 )
26- import Options.Applicative (defaultPrefs , execParserPure , getParseResult , info )
27- import qualified Text.Parsec as Parsec
28-
29- import Hedgehog (Gen , Property , assert , property , (===) )
30- import Hedgehog.Extras (assertWith , propertyOnce )
16+ import Cardano.CLI.EraBased.Options.Common
17+ ( integralParsecParser
18+ , pUrl
19+ , pairIntegralParsecParser
20+ , parseLovelace
21+ )
22+ import Data.Bits (Bits )
23+ import Data.Data (Proxy (.. ), Typeable )
24+ import Data.Either (isLeft , isRight )
25+ import Data.Maybe (isJust , isNothing )
26+ import Data.Word (Word16 , Word64 )
27+ import Hedgehog (Gen , Property , assert , property , (===) )
28+ import Hedgehog.Extras (assertWith , propertyOnce )
3129import qualified Hedgehog.Gen as Gen
32- import Hedgehog.Internal.Property (forAll )
30+ import Hedgehog.Internal.Property (forAll )
3331import qualified Hedgehog.Range as Gen
3432import qualified Hedgehog.Range as Range
33+ import Options.Applicative (defaultPrefs , execParserPure , getParseResult , info )
34+ import qualified Text.Parsec as Parsec
3535
3636-- | Execute me with:
3737-- @cabal test cardano-cli-test --test-options '-p "/integral reader/"'@
@@ -135,8 +135,9 @@ hprop_url_reader :: Property
135135hprop_url_reader = propertyOnce $ do
136136 assertWith (runUrlParser " http://example.com" ) isJust
137137 assertWith (runUrlParser (replicate 64 ' x' )) isJust
138- assertWith (runUrlParser (replicate 65 ' x' )) isNothing
139- assertWith (runUrlParser (replicate 100 ' a' )) isNothing
138+ assertWith (runUrlParser (replicate 65 ' x' )) isJust
139+ assertWith (runUrlParser (replicate 100 ' a' )) isJust
140+ assertWith (runUrlParser (replicate 129 ' a' )) isNothing
140141 where
141142 runUrlParser :: String -> Maybe L. Url
142143 runUrlParser url =
0 commit comments