Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions plutus-ledger-api/test/Spec/Versions.hs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ showPV (MajorProtocolVersion pv) =
8 -> "Valentine (PV8)"
9 -> "Chang (PV9)"
10 -> "Plomin (PV10)"
11 -> "Anon (PV11)"
11 -> "PV11"
_ -> "<unknown> (PV" ++ show pv ++ ")"

-- Some scripts for use in the version tests.
Expand Down Expand Up @@ -208,11 +208,11 @@ testPermittedBuiltins =
let testBuiltins ll deserialise pv expectedGood =
let expectGood scripts =
for_ scripts $ \(name, script) ->
assertBool (name ++ " not allowed in " ++ show ll ++" @" ++ showPV pv) $
assertBool (name ++ " should be allowed in " ++ show ll ++" @" ++ showPV pv) $
isRight $ deserialise pv script
expectBad scripts =
for_ scripts $ \(name, script) ->
assertBool (name ++ " should be allowed in " ++ show ll ++" @" ++ showPV pv) $
assertBool (name ++ " should not be allowed in " ++ show ll ++" @" ++ showPV pv) $
isLeft $ deserialise pv script
in testCase (showPV pv) $ do
expectGood expectedGood
Expand Down