Skip to content

Commit d50c486

Browse files
committed
One more test
1 parent 6720378 commit d50c486

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

lib/uplc/machine.ak

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,3 +237,15 @@ test run_1() {
237237

238238
run(term) == TConstant(Integer(2))
239239
}
240+
241+
test run_2() {
242+
let term =
243+
Apply(
244+
Lambda(Lambda(Apply(Apply(Builtin(0), Var(2)), Var(2)))),
245+
TConstant(Integer(1)),
246+
)
247+
248+
run(term) == Lambda(
249+
Apply(Apply(Builtin(0), TConstant(Integer(1))), TConstant(Integer(1))),
250+
)
251+
}

0 commit comments

Comments
 (0)