Skip to content

Commit

Permalink
Add over-application test.
Browse files Browse the repository at this point in the history
  • Loading branch information
thealmarty committed Feb 7, 2023
1 parent 13f1c5c commit 0935aa7
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
14 changes: 14 additions & 0 deletions plutus-core/plutus-ir/test/transform/inline/letOverApp
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
(let
(nonrec)
(termbind
(strict)
(vardecl idFun (fun (con integer) (con integer)))
(lam x (con integer) x)
)
(termbind
(strict)
(vardecl funApp (fun (con integer) (fun (con integer) (con integer))))
(lam eta (con integer) (lam eta (con integer) [ idFun eta ]))
)
[ [ funApp (con integer 5) ] (con integer 6) ]
)
9 changes: 9 additions & 0 deletions plutus-core/plutus-ir/test/transform/inline/letOverApp.golden
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[
[
(lam
eta (con integer) (lam eta (con integer) [ (lam x (con integer) x) eta ])
)
(con integer 5)
]
(con integer 6)
]

0 comments on commit 0935aa7

Please sign in to comment.