-
Notifications
You must be signed in to change notification settings - Fork 483
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Kwxm/conformance/more polymorphism tests (#5662)
* Fix syntax in chooseData* conformance tests * Add some more test cases * Generalise some conformance test input types a bit * Fix syntax error * Corrections
- Loading branch information
Showing
29 changed files
with
66 additions
and
44 deletions.
There are no files selected for viewing
7 changes: 4 additions & 3 deletions
7
plutus-conformance/test-cases/uplc/evaluation/builtin/constant/data/dataMap/dataMap.uplc
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,6 @@ | ||
(program 0.0.0 (con data ( | ||
Map [ (B #0123, I 12345), | ||
(B #456789, I 789453), | ||
(B #0ABCDE, I 12364689486)] | ||
Map [ (B #0123, I 12345), | ||
(I 789453, B #456789), | ||
(List [I -12364689486], Constr 7 []) | ||
] | ||
))) |
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: 2 additions & 0 deletions
2
...ormance/test-cases/uplc/evaluation/builtin/constant/list/illTypedList1/illTypedList1.uplc
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
(program 0.0.0 (con (list bool) [5]) | ||
) |
1 change: 1 addition & 0 deletions
1
...est-cases/uplc/evaluation/builtin/constant/list/illTypedList1/illTypedList1.uplc.expected
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
parse error |
2 changes: 2 additions & 0 deletions
2
...ormance/test-cases/uplc/evaluation/builtin/constant/list/illTypedList2/illTypedList2.uplc
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
(program 0.0.0 (con (list bool) [(lam x (lam y x))]) | ||
) |
1 change: 1 addition & 0 deletions
1
...est-cases/uplc/evaluation/builtin/constant/list/illTypedList2/illTypedList2.uplc.expected
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
parse error |
1 change: 1 addition & 0 deletions
1
...ormance/test-cases/uplc/evaluation/builtin/constant/pair/illTypedPair1/illTypedPair1.uplc
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
(program 0.0.0 (con (pair integer string) ((lam x x), 1)) |
1 change: 1 addition & 0 deletions
1
...est-cases/uplc/evaluation/builtin/constant/pair/illTypedPair1/illTypedPair1.uplc.expected
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
parse error |
1 change: 1 addition & 0 deletions
1
...ormance/test-cases/uplc/evaluation/builtin/constant/pair/illTypedPair2/illTypedPair2.uplc
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
(program 0.0.0 (con (pair integer string) (1, (lam y y)))) |
1 change: 1 addition & 0 deletions
1
...est-cases/uplc/evaluation/builtin/constant/pair/illTypedPair2/illTypedPair2.uplc.expected
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
parse error |
13 changes: 7 additions & 6 deletions
13
...st-cases/uplc/evaluation/builtin/semantics/chooseDataByteString/chooseDataByteString.uplc
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,8 +1,9 @@ | ||
(program 0.0.0 | ||
[[[[[[(force (builtin chooseData)) | ||
(con data {ByteString #001A})] | ||
(con data {Constr 1 [Integer 1]})] | ||
(con data {Map [(Integer 0, ByteString #00), (Integer 1, ByteString #0F)]})] | ||
(con data {List [ Integer 0, Integer 1 ]})] | ||
(con data {Integer 2})] | ||
(con data {ByteString #001A})]) | ||
(con data (B #001A))] | ||
(lam x (con integer 1))] | ||
(lam y (con string "two"))] | ||
(lam z3 z3)] | ||
(lam u (con data (I 4)))] | ||
(lam v (con data (B #05)))] | ||
) |
2 changes: 1 addition & 1 deletion
2
...uplc/evaluation/builtin/semantics/chooseDataByteString/chooseDataByteString.uplc.expected
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 @@ | ||
parse error | ||
(program 0.0.0 (lam v (con data (B #05)))) |
13 changes: 7 additions & 6 deletions
13
...mance/test-cases/uplc/evaluation/builtin/semantics/chooseDataConstr/chooseDataConstr.uplc
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,8 +1,9 @@ | ||
(program 0.0.0 | ||
[[[[[[(force (builtin chooseData)) | ||
(con data {Constr 1 [Integer 1]})] | ||
(con data {Constr 1 [Integer 1]})] | ||
(con data {Map [(Integer 0, ByteString #00), (Integer 1, ByteString #0F)]})] | ||
(con data {List [ Integer 0, Integer 1 ]})] | ||
(con data {Integer 2})] | ||
(con data {ByteString #001A})]) | ||
(con data (Constr 1 [I 1]))] | ||
(lam x (con integer 1))] | ||
(lam y (con string "two"))] | ||
(lam z3 z3)] | ||
(lam u (con data (I 4)))] | ||
(lam v (con data (B #05)))] | ||
) |
2 changes: 1 addition & 1 deletion
2
...t-cases/uplc/evaluation/builtin/semantics/chooseDataConstr/chooseDataConstr.uplc.expected
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 @@ | ||
parse error | ||
(program 0.0.0 (lam x (con integer 1))) |
13 changes: 7 additions & 6 deletions
13
...nce/test-cases/uplc/evaluation/builtin/semantics/chooseDataInteger/chooseDataInteger.uplc
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,8 +1,9 @@ | ||
(program 0.0.0 | ||
[[[[[[(force (builtin chooseData)) | ||
(con data {Integer 2})] | ||
(con data {Constr 1 [Integer 1]})] | ||
(con data {Map [(Integer 0, ByteString #00), (Integer 1, ByteString #0F)]})] | ||
(con data {List [ Integer 0, Integer 1 ]})] | ||
(con data {Integer 2})] | ||
(con data {ByteString #001A})]) | ||
(con data (I 5))] | ||
(lam x (con integer 1))] | ||
(lam y (con string "two"))] | ||
(lam z3 z3)] | ||
(lam u (con data (I 4)))] | ||
(lam v (con data (B #05)))] | ||
) |
2 changes: 1 addition & 1 deletion
2
...cases/uplc/evaluation/builtin/semantics/chooseDataInteger/chooseDataInteger.uplc.expected
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 @@ | ||
parse error | ||
(program 0.0.0 (lam u (con data (I 4)))) |
13 changes: 7 additions & 6 deletions
13
...nformance/test-cases/uplc/evaluation/builtin/semantics/chooseDataList/chooseDataList.uplc
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,8 +1,9 @@ | ||
(program 0.0.0 | ||
[[[[[[(force (builtin chooseData)) | ||
(con data {List [ Integer 0, Integer 1 ]})] | ||
(con data {Constr 1 [Integer 1]})] | ||
(con data {Map [(Integer 0, ByteString #00), (Integer 1, ByteString #0F)]})] | ||
(con data {List [ Integer 0, Integer 1 ]})] | ||
(con data {Integer 2})] | ||
(con data {ByteString #001A})]) | ||
(con data (List [I 0, I 1 ]))] | ||
(lam x (con integer 1))] | ||
(lam y (con string "two"))] | ||
(lam z3 z3)] | ||
(lam u (con data (I 4)))] | ||
(lam v (con data (B #05)))] | ||
) |
2 changes: 1 addition & 1 deletion
2
.../test-cases/uplc/evaluation/builtin/semantics/chooseDataList/chooseDataList.uplc.expected
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 @@ | ||
parse error | ||
(program 0.0.0 (lam z3 z3)) |
13 changes: 7 additions & 6 deletions
13
...conformance/test-cases/uplc/evaluation/builtin/semantics/chooseDataMap/chooseDataMap.uplc
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,8 +1,9 @@ | ||
(program 0.0.0 | ||
[[[[[[(force (builtin chooseData)) | ||
(con data {Map [(Integer 0, ByteString #00), (Integer 1, ByteString #0F)]})] | ||
(con data {Constr 1 [Integer 1]})] | ||
(con data {Map [(Integer 0, ByteString #00), (Integer 1, ByteString #0F)]})] | ||
(con data {List [ Integer 0, Integer 1 ]})] | ||
(con data {Integer 2})] | ||
(con data {ByteString #001A})]) | ||
(con data (Map [(I 0, B #00), (B #0F, I 1)]))] | ||
(lam x (con integer 1))] | ||
(lam y (con string "two"))] | ||
(lam z3 z3)] | ||
(lam u (con data (I 4)))] | ||
(lam v (con data (B #05)))] | ||
) |
2 changes: 1 addition & 1 deletion
2
...ce/test-cases/uplc/evaluation/builtin/semantics/chooseDataMap/chooseDataMap.uplc.expected
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 @@ | ||
parse error | ||
(program 0.0.0 (lam y (con string "two"))) |
2 changes: 1 addition & 1 deletion
2
...ce/test-cases/uplc/evaluation/builtin/semantics/ifThenElse/ifThenElse-1/ifThenElse-1.uplc
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 @@ | ||
(program 1.0.0 [ [ [ (force (builtin ifThenElse)) (con bool True) ] (con integer 0) ] (con integer 1) ]) | ||
(program 1.0.0 [ [ [ (force (builtin ifThenElse)) (con bool True) ] (lam x x) ] (con integer 2) ]) |
2 changes: 1 addition & 1 deletion
2
...ases/uplc/evaluation/builtin/semantics/ifThenElse/ifThenElse-1/ifThenElse-1.uplc.expected
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 @@ | ||
(program 1.0.0 (con integer 0)) | ||
(program 1.0.0 (lam x x)) |
2 changes: 1 addition & 1 deletion
2
...ce/test-cases/uplc/evaluation/builtin/semantics/ifThenElse/ifThenElse-2/ifThenElse-2.uplc
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,3 @@ | ||
(program 1.0.0 | ||
[(force (builtin ifThenElse)) (con bool True) (con integer 23) (con integer 42)] | ||
[(force (builtin ifThenElse)) (con bool False) (lam x x) (lam y (lam z z))] | ||
) |
2 changes: 1 addition & 1 deletion
2
...ases/uplc/evaluation/builtin/semantics/ifThenElse/ifThenElse-2/ifThenElse-2.uplc.expected
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 @@ | ||
(program 1.0.0 (con integer 23)) | ||
(program 1.0.0 (lam y (lam z z))) |
2 changes: 1 addition & 1 deletion
2
...ce/test-cases/uplc/evaluation/builtin/semantics/ifThenElse/ifThenElse-3/ifThenElse-3.uplc
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,3 @@ | ||
(program 1.0.0 | ||
[(force (builtin ifThenElse)) (con bool False) (con integer 23) (con integer 42)] | ||
[(force (builtin ifThenElse)) (con bool False) (lam x x) (con integer 42)] | ||
) |
1 change: 1 addition & 0 deletions
1
.../evaluation/builtin/semantics/ifThenElse/ifThenElse-bad-cond-1/ifThenElse-bad-cond-1.uplc
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
(program 1.0.0 [ [ [ (force (builtin ifThenElse)) (con integer 1) ] (con integer 11) ] (con integer -22) ]) |
1 change: 1 addition & 0 deletions
1
...on/builtin/semantics/ifThenElse/ifThenElse-bad-cond-1/ifThenElse-bad-cond-1.uplc.expected
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
evaluation failure |
1 change: 1 addition & 0 deletions
1
.../evaluation/builtin/semantics/ifThenElse/ifThenElse-bad-cond-2/ifThenElse-bad-cond-2.uplc
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
(program 1.0.0 [ [ [ (force (builtin ifThenElse)) (lam x (lam y x)) ] (con integer 11) ] (con integer -22) ]) |
1 change: 1 addition & 0 deletions
1
...on/builtin/semantics/ifThenElse/ifThenElse-bad-cond-2/ifThenElse-bad-cond-2.uplc.expected
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
evaluation failure |