-
Notifications
You must be signed in to change notification settings - Fork 476
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use Readable UPLC in the golden files of simplifier tests (#5626)
- Loading branch information
Showing
22 changed files
with
23 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
plutus-core/untyped-plutus-core/test/Transform/basic.uplc.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
(con integer 1) | ||
1 |
2 changes: 1 addition & 1 deletion
2
plutus-core/untyped-plutus-core/test/Transform/basicInline.uplc.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
(con integer 1) | ||
1 |
11 changes: 1 addition & 10 deletions
11
plutus-core/untyped-plutus-core/test/Transform/callsiteInline.uplc.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1 @@ | ||
[ | ||
(lam | ||
a_5 | ||
[ | ||
[ f_1 [ [ g_2 (con integer 1) ] (con integer 0) ] ] | ||
[ a_5 (con integer 2) ] | ||
] | ||
) | ||
(lam x_6 (lam y_7 [ [ g_2 y_7 ] x_6 ])) | ||
] | ||
((\a_5 -> f_1 (g_2 1 0) (a_5 2)) (\x_6 y_7 -> g_2 y_7 x_6)) |
2 changes: 1 addition & 1 deletion
2
plutus-core/untyped-plutus-core/test/Transform/caseOfCase1.uplc.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
[ [ [ (force (builtin ifThenElse)) b_0 ] (con integer 1) ] (con integer 2) ] | ||
(force ifThenElse b_0 1 2) |
6 changes: 1 addition & 5 deletions
6
plutus-core/untyped-plutus-core/test/Transform/caseOfCase2.uplc.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1 @@ | ||
(case | ||
[ [ [ (force (builtin ifThenElse)) b_0 ] t_1 ] (constr 1) ] | ||
(con integer 1) | ||
(con integer 2) | ||
) | ||
(case (force ifThenElse b_0 t_1 (constr 1 [])) [1, 2]) |
4 changes: 1 addition & 3 deletions
4
plutus-core/untyped-plutus-core/test/Transform/caseOfCase3.uplc.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1 @@ | ||
[ | ||
[ [ (force (builtin ifThenElse)) b_0 ] [ [ f_3 x_1 ] xs_2 ] ] (con integer 2) | ||
] | ||
(force ifThenElse b_0 (f_3 x_1 xs_2) 2) |
2 changes: 1 addition & 1 deletion
2
plutus-core/untyped-plutus-core/test/Transform/extraDelays.uplc.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
(delay (con integer 1)) | ||
(delay 1) |
2 changes: 1 addition & 1 deletion
2
plutus-core/untyped-plutus-core/test/Transform/floatDelay1.uplc.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
[ (lam a_1 [ [ (builtin addInteger) a_1 ] a_1 ]) (con integer 1) ] | ||
((\a_1 -> addInteger a_1 a_1) 1) |
5 changes: 1 addition & 4 deletions
5
plutus-core/untyped-plutus-core/test/Transform/floatDelay2.uplc.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1 @@ | ||
[ | ||
(lam a_1 [ [ (builtin addInteger) (force a_1) ] (force a_1) ]) | ||
(delay [ [ (builtin addInteger) (con integer 1) ] (con integer 2) ]) | ||
] | ||
((\a_1 -> addInteger (force a_1) (force a_1)) (delay (addInteger 1 2))) |
5 changes: 1 addition & 4 deletions
5
plutus-core/untyped-plutus-core/test/Transform/floatDelay3.uplc.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1 @@ | ||
[ | ||
(lam a_2 [ [ (builtin addInteger) (force a_2) ] (force a_2) ]) | ||
(delay (con integer 1)) | ||
] | ||
((\a_2 -> addInteger (force a_2) (force a_2)) (delay 1)) |
2 changes: 1 addition & 1 deletion
2
plutus-core/untyped-plutus-core/test/Transform/inlineImpure1.uplc.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
[ (lam a_2 (lam b_3 a_2)) (error) ] | ||
((\a_2 b_3 -> a_2) error) |
2 changes: 1 addition & 1 deletion
2
plutus-core/untyped-plutus-core/test/Transform/inlineImpure2.uplc.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
[ (lam a_2 (lam b_3 a_2)) (error) ] | ||
((\a_2 b_3 -> a_2) error) |
2 changes: 1 addition & 1 deletion
2
plutus-core/untyped-plutus-core/test/Transform/inlineImpure3.uplc.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
[ (lam a_2 (lam b_3 a_2)) (error) ] | ||
((\a_2 b_3 -> a_2) error) |
2 changes: 1 addition & 1 deletion
2
plutus-core/untyped-plutus-core/test/Transform/inlineImpure4.uplc.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
[ (lam a_3 (lam b_4 a_3)) (force a_2) ] | ||
((\a_3 b_4 -> a_3) (force a_2)) |
2 changes: 1 addition & 1 deletion
2
plutus-core/untyped-plutus-core/test/Transform/inlinePure1.uplc.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
(lam b_4 a_2) | ||
(\b_4 -> a_2) |
2 changes: 1 addition & 1 deletion
2
plutus-core/untyped-plutus-core/test/Transform/inlinePure2.uplc.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
(lam b_4 a_2) | ||
(\b_4 -> a_2) |
2 changes: 1 addition & 1 deletion
2
plutus-core/untyped-plutus-core/test/Transform/inlinePure3.uplc.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
(lam b_5 [ (lam x_8 (lam y_9 [ (con integer 1) x_8 ])) (con integer 1) ]) | ||
(\b_5 -> (\x_8 y_9 -> 1 x_8) 1) |
11 changes: 2 additions & 9 deletions
11
plutus-core/untyped-plutus-core/test/Transform/inlinePure4.uplc.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,2 @@ | ||
[ | ||
(lam a_4 (lam b_5 a_4)) | ||
(force | ||
[ | ||
(lam x_6 (delay (lam y_7 [ x_6 x_6 ]))) | ||
(delay [ (error) (con integer 1) ]) | ||
] | ||
) | ||
] | ||
((\a_4 b_5 -> a_4) | ||
(force ((\x_6 -> delay (\y_7 -> x_6 x_6)) (delay (error 1))))) |
2 changes: 1 addition & 1 deletion
2
plutus-core/untyped-plutus-core/test/Transform/interveningLambda.uplc.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
(force [ (lam a_1 (delay [ (con integer 1) a_1 ])) (con integer 1) ]) | ||
(force ((\a_1 -> delay (1 a_1)) 1)) |
2 changes: 1 addition & 1 deletion
2
plutus-core/untyped-plutus-core/test/Transform/multiApp.uplc.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
[ [ (con integer 3) (con integer 1) ] (con integer 2) ] | ||
(3 1 2) |
2 changes: 1 addition & 1 deletion
2
plutus-core/untyped-plutus-core/test/Transform/nested.uplc.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
(con integer 1) | ||
1 |