Skip to content

Commit 7f2157a

Browse files
committed
Review
1 parent 6afdbb9 commit 7f2157a

File tree

1 file changed

+2
-5
lines changed
  • libs/cardano-ledger-binary/testlib/Test/Cardano/Ledger/Binary

1 file changed

+2
-5
lines changed

libs/cardano-ledger-binary/testlib/Test/Cardano/Ledger/Binary/Cuddle.hs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -279,11 +279,8 @@ huddleRoundTripGenValidate gen version ruleName =
279279
let
280280
bs = serialize' version val
281281
res = validateCBOR bs (Name ruleName) (mapIndex cddl)
282-
if isValid res
283-
then pure ()
284-
else
285-
expectationFailure $
286-
"CBOR Validation failed\nError:\n" <> showValidationTrace res
282+
unless (isValid res) . expectationFailure $
283+
"CBOR Validation failed\nError:\n" <> showValidationTrace res
287284

288285
huddleRoundTripArbitraryValidate ::
289286
forall a.

0 commit comments

Comments
 (0)