Add PlutusV3 conformance tests and also control budgets
There were some odd discrepancy for `integerToByteString` on the mem side. Either 1 or about 1000 mem units off; which I couldn't quite figure out. Yet, it proves useful to validate builtin at large and ensure we have a valid cost model for v3.
This commit is contained in:
@@ -0,0 +1,50 @@
|
||||
(program
|
||||
1.0.0
|
||||
[
|
||||
[
|
||||
(builtin remainderInteger)
|
||||
[
|
||||
(lam
|
||||
x0
|
||||
[
|
||||
[
|
||||
(builtin addInteger)
|
||||
[
|
||||
(lam
|
||||
x1
|
||||
[ [ (builtin addInteger) (con integer 3) ] (con integer 3) ]
|
||||
)
|
||||
[
|
||||
[ (builtin lessThanInteger) (con integer 1) ] (con integer 0)
|
||||
]
|
||||
]
|
||||
]
|
||||
[
|
||||
(lam
|
||||
x2
|
||||
[
|
||||
[ (builtin subtractInteger) (con integer 1) ] (con integer 3)
|
||||
]
|
||||
)
|
||||
[
|
||||
[ (builtin equalsByteString) (con bytestring #7063) ]
|
||||
(con bytestring #716466)
|
||||
]
|
||||
]
|
||||
]
|
||||
)
|
||||
[
|
||||
(builtin sha2_256)
|
||||
[
|
||||
[
|
||||
(builtin appendByteString)
|
||||
[ (builtin sha2_256) (con bytestring #67696d) ]
|
||||
]
|
||||
[ (builtin sha2_256) (con bytestring #767174) ]
|
||||
]
|
||||
]
|
||||
]
|
||||
]
|
||||
(con integer 0)
|
||||
]
|
||||
)
|
||||
@@ -0,0 +1 @@
|
||||
evaluation failure
|
||||
@@ -0,0 +1 @@
|
||||
evaluation failure
|
||||
Reference in New Issue
Block a user