We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6afdbb9 commit 7f2157aCopy full SHA for 7f2157a
libs/cardano-ledger-binary/testlib/Test/Cardano/Ledger/Binary/Cuddle.hs
@@ -279,11 +279,8 @@ huddleRoundTripGenValidate gen version ruleName =
279
let
280
bs = serialize' version val
281
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
+ unless (isValid res) . expectationFailure $
+ "CBOR Validation failed\nError:\n" <> showValidationTrace res
287
288
huddleRoundTripArbitraryValidate ::
289
forall a.
0 commit comments