Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jhbertra committed Nov 29, 2022
1 parent 8d714ed commit bdb3b34
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions marlowe-runtime/web-server-test/Spec.hs
Expand Up @@ -69,6 +69,27 @@ instance Arbitrary Web.ContractState where
<*> arbitrary
shrink = genericShrink

instance Arbitrary Web.Tx where
arbitrary = Web.Tx
<$> arbitrary
<*> arbitrary
<*> arbitrary
<*> arbitrary
<*> arbitrary
-- size of 6 will result in a 1-layer deep contract being generated (this is
-- all we care about for the purposes of schema checking).
<*> resize 6 arbitrary
<*> arbitrary
<*> arbitrary
<*> arbitrary
<*> resize 6 arbitrary
<*> arbitrary
<*> arbitrary
<*> arbitrary
<*> arbitrary
<*> arbitrary
shrink = genericShrink

instance Arbitrary Web.PostContractsRequest where
arbitrary = Web.PostContractsRequest
<$> arbitrary
Expand Down

0 comments on commit bdb3b34

Please sign in to comment.