-
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.
Conformance tests for
replicateByte
(#6392)
* Conformance for replicateByte * Fix goldens for merge * Fix for Agda conformance * Fix Agda interface to replicateBytes; add conformance tests * Note * Note * Delete trailing whitespace (again) * Initial draft * Tests * Benchmark * Ready for PR * Fix benchmarks to avoid CTE * Golden tests for 8-queens * Goldens for Ed25519 * Set Ed25519 benchmark to be unbuildable for now * Change INLINE to INLINEABLE in benchmarks to avoid code blowout * Refactor Ed25519 to make use of SHA512 clearer * Fix warnings about plutus-tx-plugin * Refactor some definitions to be local to checkValid * Refactor, link to SHA512 RFC * Use liftCodeDef instead of compile for constants * Clarify where the Ed25519 implementation came from, remove useless comment * Fix merge * Remove unnecessary dependency --------- Co-authored-by: Koz Ross <koz.ross@retro-freedom.nz>
- Loading branch information
Showing
26 changed files
with
55 additions
and
6 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
1 change: 1 addition & 0 deletions
1
...conformance/test-cases/uplc/evaluation/builtin/semantics/replicateByte/case-1/case-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 [ [ (builtin replicateByte) (con integer -1) ] (con integer 0) ]) |
1 change: 1 addition & 0 deletions
1
...-cases/uplc/evaluation/builtin/semantics/replicateByte/case-1/case-1.uplc.budget.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
...ce/test-cases/uplc/evaluation/builtin/semantics/replicateByte/case-1/case-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
...conformance/test-cases/uplc/evaluation/builtin/semantics/replicateByte/case-2/case-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 [ [ (builtin replicateByte) (con integer -1) ] (con integer 3) ]) |
1 change: 1 addition & 0 deletions
1
...-cases/uplc/evaluation/builtin/semantics/replicateByte/case-2/case-2.uplc.budget.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
...ce/test-cases/uplc/evaluation/builtin/semantics/replicateByte/case-2/case-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 |
1 change: 1 addition & 0 deletions
1
...conformance/test-cases/uplc/evaluation/builtin/semantics/replicateByte/case-3/case-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 |
---|---|---|
@@ -0,0 +1 @@ | ||
(program 1.0.0 [ [ (builtin replicateByte) (con integer 1) ] (con integer -1) ]) |
1 change: 1 addition & 0 deletions
1
...-cases/uplc/evaluation/builtin/semantics/replicateByte/case-3/case-3.uplc.budget.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
...ce/test-cases/uplc/evaluation/builtin/semantics/replicateByte/case-3/case-3.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
...conformance/test-cases/uplc/evaluation/builtin/semantics/replicateByte/case-4/case-4.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 [ [ (builtin replicateByte) (con integer 1) ] (con integer 256) ]) |
1 change: 1 addition & 0 deletions
1
...-cases/uplc/evaluation/builtin/semantics/replicateByte/case-4/case-4.uplc.budget.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
...ce/test-cases/uplc/evaluation/builtin/semantics/replicateByte/case-4/case-4.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
...conformance/test-cases/uplc/evaluation/builtin/semantics/replicateByte/case-5/case-5.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 [ [ (builtin replicateByte) (con integer 4) ] (con integer -1) ]) |
1 change: 1 addition & 0 deletions
1
...-cases/uplc/evaluation/builtin/semantics/replicateByte/case-5/case-5.uplc.budget.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
...ce/test-cases/uplc/evaluation/builtin/semantics/replicateByte/case-5/case-5.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
...conformance/test-cases/uplc/evaluation/builtin/semantics/replicateByte/case-6/case-6.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 [ [ (builtin replicateByte) (con integer 4) ] (con integer 256) ]) |
1 change: 1 addition & 0 deletions
1
...-cases/uplc/evaluation/builtin/semantics/replicateByte/case-6/case-6.uplc.budget.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
...ce/test-cases/uplc/evaluation/builtin/semantics/replicateByte/case-6/case-6.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
...conformance/test-cases/uplc/evaluation/builtin/semantics/replicateByte/case-7/case-7.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 [ [ (builtin replicateByte) (con integer 0) ] (con integer 255) ]) |
2 changes: 2 additions & 0 deletions
2
...-cases/uplc/evaluation/builtin/semantics/replicateByte/case-7/case-7.uplc.budget.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,2 @@ | ||
({cpu: 260294 | ||
| mem: 601}) |
1 change: 1 addition & 0 deletions
1
...ce/test-cases/uplc/evaluation/builtin/semantics/replicateByte/case-7/case-7.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 @@ | ||
(program 1.0.0 (con bytestring #)) |
1 change: 1 addition & 0 deletions
1
...conformance/test-cases/uplc/evaluation/builtin/semantics/replicateByte/case-8/case-8.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 [ [ (builtin replicateByte) (con integer 4) ] (con integer 255) ]) |
2 changes: 2 additions & 0 deletions
2
...-cases/uplc/evaluation/builtin/semantics/replicateByte/case-8/case-8.uplc.budget.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,2 @@ | ||
({cpu: 260453 | ||
| mem: 602}) |
1 change: 1 addition & 0 deletions
1
...ce/test-cases/uplc/evaluation/builtin/semantics/replicateByte/case-8/case-8.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 @@ | ||
(program 1.0.0 (con bytestring #ffffffff)) |
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