Skip to content

Commit 1996152

Browse files
Kenneth MacKenziekozross
andauthored
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 <[email protected]>
1 parent 8ca2d4f commit 1996152

26 files changed

+55
-6
lines changed

plutus-conformance/agda/Spec.hs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,13 @@ failingEvaluationTests = []
119119
-}
120120
failingBudgetTests :: [FilePath]
121121
failingBudgetTests =
122-
[ "test-cases/uplc/evaluation/builtin/semantics/writeBits/case-11"
122+
-- These currently fail because the Agda code doesn't know about alternative
123+
-- size measures used by `replicateByte` and `writeBits`: see
124+
-- https://github.com/IntersectMBO/plutus/pull/6368. Some of the budget tests
125+
-- do pass, either because evaluation fails or because two different size
126+
-- measures happen to be the same for small inputs.
127+
[ "test-cases/uplc/evaluation/builtin/semantics/replicateByte/case-7"
128+
, "test-cases/uplc/evaluation/builtin/semantics/writeBits/case-11"
123129
, "test-cases/uplc/evaluation/builtin/semantics/writeBits/case-12"
124130
, "test-cases/uplc/evaluation/builtin/semantics/writeBits/case-13"
125131
, "test-cases/uplc/evaluation/builtin/semantics/writeBits/case-14"
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
(program 1.0.0 [ [ (builtin replicateByte) (con integer -1) ] (con integer 0) ])
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
evaluation failure
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
evaluation failure
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
(program 1.0.0 [ [ (builtin replicateByte) (con integer -1) ] (con integer 3) ])
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
evaluation failure
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
evaluation failure
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
(program 1.0.0 [ [ (builtin replicateByte) (con integer 1) ] (con integer -1) ])
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
evaluation failure
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
evaluation failure

0 commit comments

Comments
 (0)