Skip to content

Commit

Permalink
Use forAllBlind in ScriptRegistrySpec
Browse files Browse the repository at this point in the history
If the result is not equal, it will print 'r' anyways.
  • Loading branch information
ch1bo committed Feb 6, 2023
1 parent 2f3442c commit 757f8b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hydra-node/test/Hydra/Chain/Direct/ScriptRegistrySpec.hs
Expand Up @@ -8,10 +8,10 @@ import Hydra.Chain.Direct.ScriptRegistry (
newScriptRegistry,
registryUTxO,
)
import Test.QuickCheck (forAll, (===))
import Test.QuickCheck (forAllBlind, (===))

spec :: Spec
spec =
prop "newScriptRegistry (registryUTxO r) === Just r" $
forAll genScriptRegistry $ \r ->
forAllBlind genScriptRegistry $ \r ->
newScriptRegistry (registryUTxO r) === Right r

0 comments on commit 757f8b7

Please sign in to comment.