Skip to content

Commit

Permalink
Example of a failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
j-mueller committed Oct 19, 2020
1 parent 33d93be commit 9c51813
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Expand Up @@ -110,6 +110,7 @@ contract ::
Contract PrismSchema PrismError ()
contract = do
r <- mapError EPError $ endpoint @"role"
logInfo r
case r of
CredMan -> mapError CredManErr credentialManager
Mirror -> mapError MirrorErr mirror
Expand Down
1 change: 1 addition & 0 deletions plutus-use-cases/test/Spec/Prism.hs
Expand Up @@ -63,6 +63,7 @@ tests = testGroup "PRISM"
[ checkPredicate "withdraw"
contract
(assertDone user (const True) ""
/\ emulatorLog (const False) ""
/\ walletFundsChange issuer (Ada.lovelaceValueOf numTokens)
/\ walletFundsChange user (Ada.lovelaceValueOf (negate numTokens) <> STO.coins stoData numTokens)
)
Expand Down

0 comments on commit 9c51813

Please sign in to comment.