-
Notifications
You must be signed in to change notification settings - Fork 10
Implement and add conformance tests for bool/integer/list/pair/unit casing #22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
2d2c7d8
chore: add conformance tests for bool/integer/list/pair/unit casing
jonathanlim222 0ce5c52
style: clippy cleanup
jonathanlim222 638ffbf
feat: implement bool/integer/list/pair/unit casing
jonathanlim222 03a6be4
Merge branch 'pragma-org:main' into main
jonathanlim222 3965645
feat: added errors to be in line with haskell impl
jonathanlim222 36f8c6f
style: adjusted error messages for CekCaseBuiltinError
jonathanlim222 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
4 changes: 4 additions & 0 deletions
4
crates/uplc/tests/conformance/term/constant-case/bool/bool-01/bool-01.uplc
This file contains hidden or 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,4 @@ | ||
| -- case on false | ||
| (program 1.1.0 | ||
| (case (con bool False) (con integer 0) (con integer 1)) | ||
| ) |
2 changes: 2 additions & 0 deletions
2
crates/uplc/tests/conformance/term/constant-case/bool/bool-01/bool-01.uplc.budget.expected
This file contains hidden or 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 @@ | ||
| ({cpu: 48100 | ||
| | mem: 400}) |
1 change: 1 addition & 0 deletions
1
crates/uplc/tests/conformance/term/constant-case/bool/bool-01/bool-01.uplc.expected
This file contains hidden or 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.1.0 (con integer 0)) |
4 changes: 4 additions & 0 deletions
4
crates/uplc/tests/conformance/term/constant-case/bool/bool-02/bool-02.uplc
This file contains hidden or 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,4 @@ | ||
| -- case on true | ||
| (program 1.1.0 | ||
| (case (con bool True) (con integer 0) (con integer 1)) | ||
| ) |
2 changes: 2 additions & 0 deletions
2
crates/uplc/tests/conformance/term/constant-case/bool/bool-02/bool-02.uplc.budget.expected
This file contains hidden or 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 @@ | ||
| ({cpu: 48100 | ||
| | mem: 400}) |
1 change: 1 addition & 0 deletions
1
crates/uplc/tests/conformance/term/constant-case/bool/bool-02/bool-02.uplc.expected
This file contains hidden or 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.1.0 (con integer 1)) |
4 changes: 4 additions & 0 deletions
4
crates/uplc/tests/conformance/term/constant-case/bool/bool-03/bool-03.uplc
This file contains hidden or 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,4 @@ | ||
| -- case on false, one branch | ||
| (program 1.1.0 | ||
| (case (con bool False) (con integer 0)) | ||
| ) |
2 changes: 2 additions & 0 deletions
2
crates/uplc/tests/conformance/term/constant-case/bool/bool-03/bool-03.uplc.budget.expected
This file contains hidden or 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 @@ | ||
| ({cpu: 48100 | ||
| | mem: 400}) |
1 change: 1 addition & 0 deletions
1
crates/uplc/tests/conformance/term/constant-case/bool/bool-03/bool-03.uplc.expected
This file contains hidden or 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.1.0 (con integer 0)) |
4 changes: 4 additions & 0 deletions
4
crates/uplc/tests/conformance/term/constant-case/bool/bool-04/bool-04.uplc
This file contains hidden or 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,4 @@ | ||
| -- case on true, one branch. Fails | ||
| (program 1.1.0 | ||
| (case (con bool True) (con integer 0)) | ||
| ) |
1 change: 1 addition & 0 deletions
1
crates/uplc/tests/conformance/term/constant-case/bool/bool-04/bool-04.uplc.budget.expected
This file contains hidden or 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
crates/uplc/tests/conformance/term/constant-case/bool/bool-04/bool-04.uplc.expected
This file contains hidden or 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 |
4 changes: 4 additions & 0 deletions
4
crates/uplc/tests/conformance/term/constant-case/bool/bool-05/bool-05.uplc
This file contains hidden or 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,4 @@ | ||
| -- case on False with 3+ branches fails | ||
| (program 1.1.0 | ||
| (case (con bool False) (con integer 0) (con integer 1) (con integer 2)) | ||
| ) |
1 change: 1 addition & 0 deletions
1
crates/uplc/tests/conformance/term/constant-case/bool/bool-05/bool-05.uplc.budget.expected
This file contains hidden or 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
crates/uplc/tests/conformance/term/constant-case/bool/bool-05/bool-05.uplc.expected
This file contains hidden or 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 |
4 changes: 4 additions & 0 deletions
4
crates/uplc/tests/conformance/term/constant-case/bool/bool-06/bool-06.uplc
This file contains hidden or 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,4 @@ | ||
| -- case on True with 3+ branches fails | ||
| (program 1.1.0 | ||
| (case (con bool True) (con integer 0) (con integer 1) (con integer 2)) | ||
| ) |
1 change: 1 addition & 0 deletions
1
crates/uplc/tests/conformance/term/constant-case/bool/bool-06/bool-06.uplc.budget.expected
This file contains hidden or 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
crates/uplc/tests/conformance/term/constant-case/bool/bool-06/bool-06.uplc.expected
This file contains hidden or 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 |
4 changes: 4 additions & 0 deletions
4
crates/uplc/tests/conformance/term/constant-case/bool/bool-07/bool-07.uplc
This file contains hidden or 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,4 @@ | ||
| -- case on boolean with no branches fails | ||
| (program 1.1.0 | ||
| (case (con bool False)) | ||
| ) |
1 change: 1 addition & 0 deletions
1
crates/uplc/tests/conformance/term/constant-case/bool/bool-07/bool-07.uplc.budget.expected
This file contains hidden or 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
crates/uplc/tests/conformance/term/constant-case/bool/bool-07/bool-07.uplc.expected
This file contains hidden or 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 |
4 changes: 4 additions & 0 deletions
4
crates/uplc/tests/conformance/term/constant-case/integer/integer-01/integer-01.uplc
This file contains hidden or 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,4 @@ | ||
| -- case on integer with no cases fails | ||
| (program 1.1.0 | ||
| (case (con integer 0)) | ||
| ) |
1 change: 1 addition & 0 deletions
1
...c/tests/conformance/term/constant-case/integer/integer-01/integer-01.uplc.budget.expected
This file contains hidden or 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
crates/uplc/tests/conformance/term/constant-case/integer/integer-01/integer-01.uplc.expected
This file contains hidden or 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 |
4 changes: 4 additions & 0 deletions
4
crates/uplc/tests/conformance/term/constant-case/integer/integer-02/integer-02.uplc
This file contains hidden or 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,4 @@ | ||
| -- case on integer second branch | ||
| (program 1.1.0 | ||
| (case (con integer 1) (con integer 42) (con integer 43) (con integer 443)) | ||
| ) |
2 changes: 2 additions & 0 deletions
2
...c/tests/conformance/term/constant-case/integer/integer-02/integer-02.uplc.budget.expected
This file contains hidden or 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 @@ | ||
| ({cpu: 48100 | ||
| | mem: 400}) |
1 change: 1 addition & 0 deletions
1
crates/uplc/tests/conformance/term/constant-case/integer/integer-02/integer-02.uplc.expected
This file contains hidden or 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.1.0 (con integer 43)) |
4 changes: 4 additions & 0 deletions
4
crates/uplc/tests/conformance/term/constant-case/integer/integer-03/integer-03.uplc
This file contains hidden or 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,4 @@ | ||
| -- case on integer fails when given integer is bigger than number of branches given | ||
| (program 1.1.0 | ||
| (case (con integer 3) (con integer 42) (con integer 43) (con integer 44)) | ||
| ) |
1 change: 1 addition & 0 deletions
1
...c/tests/conformance/term/constant-case/integer/integer-03/integer-03.uplc.budget.expected
This file contains hidden or 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
crates/uplc/tests/conformance/term/constant-case/integer/integer-03/integer-03.uplc.expected
This file contains hidden or 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 |
4 changes: 4 additions & 0 deletions
4
crates/uplc/tests/conformance/term/constant-case/integer/integer-04/integer-04.uplc
This file contains hidden or 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,4 @@ | ||
| -- case on negative integer fails | ||
| (program 1.1.0 | ||
| (case (con integer -1) (con integer 42) (con integer 43) (con integer 44)) | ||
| ) |
1 change: 1 addition & 0 deletions
1
...c/tests/conformance/term/constant-case/integer/integer-04/integer-04.uplc.budget.expected
This file contains hidden or 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
crates/uplc/tests/conformance/term/constant-case/integer/integer-04/integer-04.uplc.expected
This file contains hidden or 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 |
4 changes: 4 additions & 0 deletions
4
crates/uplc/tests/conformance/term/constant-case/list/list-01/list-01.uplc
This file contains hidden or 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,4 @@ | ||
| -- case on non-empty list with two branches | ||
| (program 1.1.0 | ||
| (case (con (list integer) [1, 2, 3, 4]) (lam x (lam xs x)) (con integer -1)) | ||
| ) |
2 changes: 2 additions & 0 deletions
2
crates/uplc/tests/conformance/term/constant-case/list/list-01/list-01.uplc.budget.expected
This file contains hidden or 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 @@ | ||
| ({cpu: 80100 | ||
| | mem: 600}) |
1 change: 1 addition & 0 deletions
1
crates/uplc/tests/conformance/term/constant-case/list/list-01/list-01.uplc.expected
This file contains hidden or 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.1.0 (con integer 1)) |
4 changes: 4 additions & 0 deletions
4
crates/uplc/tests/conformance/term/constant-case/list/list-02/list-02.uplc
This file contains hidden or 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,4 @@ | ||
| -- case on empty list with two branches | ||
| (program 1.1.0 | ||
| (case (con (list integer) []) (lam x (lam xs x)) (con integer -1)) | ||
| ) |
2 changes: 2 additions & 0 deletions
2
crates/uplc/tests/conformance/term/constant-case/list/list-02/list-02.uplc.budget.expected
This file contains hidden or 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 @@ | ||
| ({cpu: 48100 | ||
| | mem: 400}) |
1 change: 1 addition & 0 deletions
1
crates/uplc/tests/conformance/term/constant-case/list/list-02/list-02.uplc.expected
This file contains hidden or 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.1.0 (con integer -1)) |
4 changes: 4 additions & 0 deletions
4
crates/uplc/tests/conformance/term/constant-case/list/list-03/list-03.uplc
This file contains hidden or 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,4 @@ | ||
| -- case on non-empty list with one branch | ||
| (program 1.1.0 | ||
| (case (con (list integer) [1, 2, 3, 4]) (lam x (lam xs x))) | ||
| ) |
2 changes: 2 additions & 0 deletions
2
crates/uplc/tests/conformance/term/constant-case/list/list-03/list-03.uplc.budget.expected
This file contains hidden or 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 @@ | ||
| ({cpu: 80100 | ||
| | mem: 600}) |
1 change: 1 addition & 0 deletions
1
crates/uplc/tests/conformance/term/constant-case/list/list-03/list-03.uplc.expected
This file contains hidden or 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.1.0 (con integer 1)) |
4 changes: 4 additions & 0 deletions
4
crates/uplc/tests/conformance/term/constant-case/list/list-04/list-04.uplc
This file contains hidden or 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,4 @@ | ||
| -- case on empty list with one branch | ||
| (program 1.1.0 | ||
| (case (con (list integer) []) (lam x (lam xs x))) | ||
| ) |
1 change: 1 addition & 0 deletions
1
crates/uplc/tests/conformance/term/constant-case/list/list-04/list-04.uplc.budget.expected
This file contains hidden or 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
crates/uplc/tests/conformance/term/constant-case/list/list-04/list-04.uplc.expected
This file contains hidden or 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 |
4 changes: 4 additions & 0 deletions
4
crates/uplc/tests/conformance/term/constant-case/list/list-05/list-05.uplc
This file contains hidden or 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,4 @@ | ||
| -- case on non-empty list with one incorrectly typed branch | ||
| (program 1.1.0 | ||
| (case (con (list integer) [1, 2, 3, 4]) (con integer -1)) | ||
| ) |
1 change: 1 addition & 0 deletions
1
crates/uplc/tests/conformance/term/constant-case/list/list-05/list-05.uplc.budget.expected
This file contains hidden or 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
crates/uplc/tests/conformance/term/constant-case/list/list-05/list-05.uplc.expected
This file contains hidden or 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 |
4 changes: 4 additions & 0 deletions
4
crates/uplc/tests/conformance/term/constant-case/list/list-06/list-06.uplc
This file contains hidden or 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,4 @@ | ||
| -- case on non-empty list with two incorrectly typed branch | ||
| (program 1.1.0 | ||
| (case (con (list integer) [1, 2, 3, 4]) (con integer -1) (con integer -1)) | ||
| ) |
1 change: 1 addition & 0 deletions
1
crates/uplc/tests/conformance/term/constant-case/list/list-06/list-06.uplc.budget.expected
This file contains hidden or 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
crates/uplc/tests/conformance/term/constant-case/list/list-06/list-06.uplc.expected
This file contains hidden or 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 |
4 changes: 4 additions & 0 deletions
4
crates/uplc/tests/conformance/term/constant-case/list/list-07/list-07.uplc
This file contains hidden or 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,4 @@ | ||
| -- case on empty list with two incorrectly typed branch | ||
| (program 1.1.0 | ||
| (case (con (list integer) [1, 2, 3, 4]) (con integer -1) (lam x (lam xs x))) | ||
| ) |
1 change: 1 addition & 0 deletions
1
crates/uplc/tests/conformance/term/constant-case/list/list-07/list-07.uplc.budget.expected
This file contains hidden or 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
crates/uplc/tests/conformance/term/constant-case/list/list-07/list-07.uplc.expected
This file contains hidden or 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 |
3 changes: 3 additions & 0 deletions
3
crates/uplc/tests/conformance/term/constant-case/pair/pair-01/pair-01.uplc
This file contains hidden or 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,3 @@ | ||
| (program 1.1.0 | ||
| (case (con (pair integer bool) (42, False)) (lam l (lam r l))) | ||
| ) |
2 changes: 2 additions & 0 deletions
2
crates/uplc/tests/conformance/term/constant-case/pair/pair-01/pair-01.uplc.budget.expected
This file contains hidden or 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 @@ | ||
| ({cpu: 80100 | ||
| | mem: 600}) |
1 change: 1 addition & 0 deletions
1
crates/uplc/tests/conformance/term/constant-case/pair/pair-01/pair-01.uplc.expected
This file contains hidden or 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.1.0 (con integer 42)) |
3 changes: 3 additions & 0 deletions
3
crates/uplc/tests/conformance/term/constant-case/pair/pair-02/pair-02.uplc
This file contains hidden or 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,3 @@ | ||
| (program 1.1.0 | ||
| (case (con (pair integer bool) (42, False)) (lam l (lam r r))) | ||
| ) |
2 changes: 2 additions & 0 deletions
2
crates/uplc/tests/conformance/term/constant-case/pair/pair-02/pair-02.uplc.budget.expected
This file contains hidden or 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 @@ | ||
| ({cpu: 80100 | ||
| | mem: 600}) |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Has this error changed in the haskell version?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
NonConstrScrutinizedhas not changed.https://github.com/IntersectMBO/plutus/blob/0afc97f60fba436b08ba99b98c62b47b1670003a/plutus-core/plutus-core/src/PlutusCore/Evaluation/Machine/Ck.hs#L252
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've updated some of the errors to be more in line with the Haskell implementation.