Skip to content

Commit

Permalink
Stronger assertion for ADDRESS_LIST_05 - bech32 HRP is correct - mainnet
Browse files Browse the repository at this point in the history
  • Loading branch information
Piotr Stachyra committed Oct 28, 2020
1 parent 5573ad8 commit 1b26c2b
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -33,7 +33,7 @@ import Data.Generics.Internal.VL.Lens
import Data.Quantity
( Quantity (..) )
import Test.Hspec
( SpecWith, describe, shouldBe, shouldSatisfy )
( SpecWith, describe, shouldBe, shouldNotSatisfy, shouldSatisfy )
import Test.Hspec.Extra
( it )
import Test.Integration.Framework.DSL
Expand Down Expand Up @@ -236,6 +236,8 @@ spec = describe "SHELLEY_ADDRESSES" $ do
-- integration tests are configured for mainnet
, expectListField 0 (Aeson.key "id" . Aeson._String)
(`shouldSatisfy` T.isPrefixOf "addr")
, expectListField 0 (Aeson.key "id" . Aeson._String)
(`shouldNotSatisfy` T.isPrefixOf "addr_test")
]

it "ADDRESS_INSPECT_01 - Address inspect OK" $ \ctx -> do
Expand Down

0 comments on commit 1b26c2b

Please sign in to comment.