Add new conformance tests

This commit is contained in:
microproofs 2024-12-07 12:23:51 +07:00
parent 5f1f37919f
commit 17fdbd356a
No known key found for this signature in database
GPG Key ID: 14F93C84DE6AFD17
961 changed files with 2694 additions and 0 deletions

View File

@ -0,0 +1,4 @@
-- Missing the 0x prefix.
(program 0.0.0
(con bls12_381_G1_element c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)
)

View File

@ -0,0 +1,4 @@
-- This has # instead of 0x.
(program 0.0.0
(con bls12_381_G1_element #c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)
)

View File

@ -0,0 +1,4 @@
-- A bad encoding: this has the negative bit set, but nothing else.
(program 0.0.0
(con bls12_381_G1_element 0x400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)
)

View File

@ -0,0 +1,4 @@
-- Almost a correct representation of the zero point, but with the negation bit set.
(program 0.0.0
(con bls12_381_G1_element 0xe00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)
)

View File

@ -0,0 +1,4 @@
-- The zero point, but with a random bit set in the body (should all be 0)
(program 0.0.0
(con bls12_381_G1_element 0xc00000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000)
)

View File

@ -0,0 +1,4 @@
-- Missing the 0x prefix.
(program 0.0.0
(con bls12_381_G2_element c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)
)

View File

@ -0,0 +1,4 @@
-- This has # instead of 0x.
(program 0.0.0
(con bls12_381_G2_element #c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)
)

View File

@ -0,0 +1,4 @@
-- A bad encoding: this has the negative bit set, but nothing else.
(program 0.0.0
(con bls12_381_G2_element 0x400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)
)

View File

@ -0,0 +1,4 @@
-- Almost a correct represntation of the zero point, but with the negation bit set.
(program 0.0.0
(con bls12_381_G2_element 0xe00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)
)

View File

@ -0,0 +1,4 @@
-- The zero point, but with a random bit set in the body (should all be 0)
(program 0.0.0
(con bls12_381_G2_element 0xc0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000)
)

View File

@ -0,0 +1 @@
(program 0.0.0 (con bytestring #00ff))

View File

@ -0,0 +1 @@
(program 0.0.0 (con bytestring #00ff))

View File

@ -0,0 +1,3 @@
(program 1.0.0
(con bytestring #54686543616B654973414C6965)
)

View File

@ -0,0 +1 @@
(program 1.0.0 (con bytestring #54686543616B654973414C6965))

View File

@ -0,0 +1,3 @@
(program 1.0.0
(con bytestring #)
)

View File

@ -0,0 +1 @@
(program 1.0.0 (con bytestring #))

View File

@ -0,0 +1,3 @@
(program 1.0.0
(con bytestring #12345)
)

View File

@ -0,0 +1 @@
(program 0.0.0 (con integer 0))

View File

@ -0,0 +1 @@
(program 0.0.0 (con integer 0))

View File

@ -0,0 +1 @@
(program 0.0.0 (con integer 1))

View File

@ -0,0 +1 @@
(program 0.0.0 (con integer 1))

View File

@ -0,0 +1 @@
(program 0.0.0 (con integer -1))

View File

@ -0,0 +1 @@
(program 0.0.0 (con integer -1))

View File

@ -0,0 +1 @@
(program 0.0.0 (con integer 000000000000000000000000000000000000012345))

View File

@ -0,0 +1 @@
(program 0.0.0 (con integer 12345))

View File

@ -0,0 +1 @@
(program 0.0.0 (con integer -000000000000000000000000000000000000012345))

View File

@ -0,0 +1 @@
(program 0.0.0 (con integer -12345))

View File

@ -0,0 +1 @@
(program 0.0.0 (con integer 7934472584735297345829374203940389857324250374130461237461374324689198237413246172439813568362847918324132461234689173469172364972574327894626348923469234728574196241238723984567805163407561370166661807515263473485635726))

View File

@ -0,0 +1,7 @@
(program
0.0.0
(con
integer
7934472584735297345829374203940389857324250374130461237461374324689198237413246172439813568362847918324132461234689173469172364972574327894626348923469234728574196241238723984567805163407561370166661807515263473485635726
)
)

View File

@ -0,0 +1 @@
(program 0.0.0 (con integer -7934472584735297345829374203940389857324250374130461237461374324689198237413246172439813568362847918324132461234689173469172364972574327894626348923469234728574196241238723984567805163407561370166661807515263473485635726))

View File

@ -0,0 +1,7 @@
(program
0.0.0
(con
integer
-7934472584735297345829374203940389857324250374130461237461374324689198237413246172439813568362847918324132461234689173469172364972574327894626348923469234728574196241238723984567805163407561370166661807515263473485635726
)
)

View File

@ -0,0 +1 @@
(program 0.0.0 (con integer +7934472584735297345829374203940389857324250374130461237461374324689198237413246172439813568362847918324132461234689173469172364972574327894626348923469234728574196241238723984567805163407561370166661807515263473485635726))

View File

@ -0,0 +1,7 @@
(program
0.0.0
(con
integer
7934472584735297345829374203940389857324250374130461237461374324689198237413246172439813568362847918324132461234689173469172364972574327894626348923469234728574196241238723984567805163407561370166661807515263473485635726
)
)

View File

@ -0,0 +1 @@
(program 0.0.0 (con integer 0.5))

View File

@ -0,0 +1,2 @@
(program 0.0.0 (con (list bool) [5])
)

View File

@ -0,0 +1,2 @@
(program 0.0.0 (con (list bool) [(lam x (lam y x))])
)

View File

@ -0,0 +1 @@
(program 0.0.0 (con (pair integer string) ((lam x x), 1))

View File

@ -0,0 +1 @@
(program 0.0.0 (con (pair integer string) (1, (lam y y))))

View File

@ -0,0 +1,4 @@
(program 1.0.0 [
[ [ (builtin andByteString) (con bool False) ] (con bytestring #) ]
(con bytestring #ff)
])

View File

@ -0,0 +1 @@
(program 1.0.0 (con bytestring #))

View File

@ -0,0 +1,4 @@
(program 1.0.0 [
[ [ (builtin andByteString) (con bool False) ] (con bytestring #ff) ]
(con bytestring #)
])

View File

@ -0,0 +1 @@
(program 1.0.0 (con bytestring #))

View File

@ -0,0 +1,4 @@
(program 1.0.0 [
[ [ (builtin andByteString) (con bool False) ] (con bytestring #ff) ]
(con bytestring #00)
])

View File

@ -0,0 +1 @@
(program 1.0.0 (con bytestring #00))

View File

@ -0,0 +1,4 @@
(program 1.0.0 [
[ [ (builtin andByteString) (con bool False) ] (con bytestring #00) ]
(con bytestring #ff)
])

View File

@ -0,0 +1 @@
(program 1.0.0 (con bytestring #00))

View File

@ -0,0 +1,4 @@
(program 1.0.0 [
[ [ (builtin andByteString) (con bool False) ] (con bytestring #4f00) ]
(con bytestring #f4)
])

View File

@ -0,0 +1 @@
(program 1.0.0 (con bytestring #44))

View File

@ -0,0 +1,4 @@
(program 1.0.0 [
[ [ (builtin andByteString) (con bool True) ] (con bytestring #) ]
(con bytestring #ff)
])

View File

@ -0,0 +1 @@
(program 1.0.0 (con bytestring #ff))

View File

@ -0,0 +1,4 @@
(program 1.0.0 [
[ [ (builtin andByteString) (con bool True) ] (con bytestring #ff) ]
(con bytestring #)
])

Some files were not shown because too many files have changed in this diff Show More