Skip to content

Commit

Permalink
defcap non-local static test
Browse files Browse the repository at this point in the history
  • Loading branch information
0xd34df00d committed Dec 15, 2023
1 parent 8f88dae commit d69e419
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion pact-core-tests/Pact/Core/Test/StaticErrorTests.hs
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ staticTests =
(defun i () p)
)
|])
-- TODO better error
-- TODO better error; intended to trigger `UnboundTypeVariable` instead in `renameDefTable`
, ("invalid_def_table_nonexistent", isDesugarError _NoSuchModule, [text|
(module fdb G
(defcap G () true)
Expand All @@ -244,6 +244,14 @@ staticTests =
(deftable fdb-tbl:{i})
)
|])
-- TODO better errror; intended to trigger `expectedFree` instead
, ("defmanaged_wrong_ref", isDesugarError _NoSuchModule, [text|
(module m g (defcap g () true)
(defcap CAP:bool (a:integer b:integer)
@managed a b
true
)
)
|])
]

Expand Down

0 comments on commit d69e419

Please sign in to comment.