inited tr tests
This commit is contained in:
parent
b135d8f0b2
commit
131806f9a7
3 changed files with 22 additions and 2 deletions
|
|
@ -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
|
||||||
import Apropos.Script
|
import Apropos.Script
|
||||||
|
|
|
||||||
|
|
@ -1 +1,10 @@
|
||||||
module Spec.Treasury () where
|
module Spec.Treasury () where
|
||||||
|
|
||||||
|
import Test.Tasty (TestTree, testGroup)
|
||||||
|
|
||||||
|
tests :: [TestTree]
|
||||||
|
tests =
|
||||||
|
[ testGroup
|
||||||
|
"treasury"
|
||||||
|
[]
|
||||||
|
]
|
||||||
|
|
|
||||||
|
|
@ -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 =
|
policySucceedsWith tag policy redeemer scriptContext =
|
||||||
scriptSucceeds tag $ compile (policy # redeemer # pconstant scriptContext)
|
scriptSucceeds tag $ compile (policy # redeemer # pconstant scriptContext)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue