inited tr tests

This commit is contained in:
Jack Hodgkinson 2022-03-18 10:59:46 +00:00
parent 998a2af674
commit ec2a119f81
3 changed files with 22 additions and 2 deletions

View file

@ -1,4 +1,10 @@
module Spec.Int (HasLogicalModel (..), IntProp (..), intGenTests, intPureTests, intPlutarchTests) where
module Spec.Int (
HasLogicalModel (..),
IntProp (..),
intGenTests,
intPureTests,
intPlutarchTests,
) where
import Apropos
import Apropos.Script

View file

@ -1 +1,10 @@
module Spec.Treasury () where
import Test.Tasty (TestTree, testGroup)
tests :: [TestTree]
tests =
[ testGroup
"treasury"
[]
]

View file

@ -24,7 +24,12 @@ import Plutus.V1.Ledger.Scripts (Script)
--------------------------------------------------------------------------------
policySucceedsWith :: String -> ClosedTerm PMintingPolicy -> ClosedTerm PData -> _ -> TestTree
policySucceedsWith ::
String ->
ClosedTerm PMintingPolicy ->
ClosedTerm PData ->
_ ->
TestTree
policySucceedsWith tag policy redeemer scriptContext =
scriptSucceeds tag $ compile (policy # redeemer # pconstant scriptContext)