Skip to content

Commit f8bba8c

Browse files
authored
Invert some error messages in plutus-ledger-api tests (#7240)
1 parent 0f4676f commit f8bba8c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

plutus-ledger-api/test/Spec/Versions.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ showPV (MajorProtocolVersion pv) =
5050
8 -> "Valentine (PV8)"
5151
9 -> "Chang (PV9)"
5252
10 -> "Plomin (PV10)"
53-
11 -> "Anon (PV11)"
53+
11 -> "PV11"
5454
_ -> "<unknown> (PV" ++ show pv ++ ")"
5555

5656
-- Some scripts for use in the version tests.
@@ -208,11 +208,11 @@ testPermittedBuiltins =
208208
let testBuiltins ll deserialise pv expectedGood =
209209
let expectGood scripts =
210210
for_ scripts $ \(name, script) ->
211-
assertBool (name ++ " not allowed in " ++ show ll ++" @" ++ showPV pv) $
211+
assertBool (name ++ " should be allowed in " ++ show ll ++" @" ++ showPV pv) $
212212
isRight $ deserialise pv script
213213
expectBad scripts =
214214
for_ scripts $ \(name, script) ->
215-
assertBool (name ++ " should be allowed in " ++ show ll ++" @" ++ showPV pv) $
215+
assertBool (name ++ " should not be allowed in " ++ show ll ++" @" ++ showPV pv) $
216216
isLeft $ deserialise pv script
217217
in testCase (showPV pv) $ do
218218
expectGood expectedGood

0 commit comments

Comments
 (0)