Add new conformance tests
This commit is contained in:
parent
5f1f37919f
commit
17fdbd356a
|
@ -0,0 +1,4 @@
|
|||
-- Missing the 0x prefix.
|
||||
(program 0.0.0
|
||||
(con bls12_381_G1_element c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)
|
||||
)
|
|
@ -0,0 +1 @@
|
|||
parse error
|
|
@ -0,0 +1 @@
|
|||
parse error
|
|
@ -0,0 +1,4 @@
|
|||
-- This has # instead of 0x.
|
||||
(program 0.0.0
|
||||
(con bls12_381_G1_element #c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)
|
||||
)
|
|
@ -0,0 +1 @@
|
|||
parse error
|
|
@ -0,0 +1 @@
|
|||
parse error
|
|
@ -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)
|
||||
)
|
|
@ -0,0 +1 @@
|
|||
parse error
|
|
@ -0,0 +1 @@
|
|||
parse error
|
|
@ -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)
|
||||
)
|
|
@ -0,0 +1 @@
|
|||
parse error
|
|
@ -0,0 +1 @@
|
|||
parse error
|
|
@ -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)
|
||||
)
|
|
@ -0,0 +1 @@
|
|||
parse error
|
|
@ -0,0 +1 @@
|
|||
parse error
|
|
@ -0,0 +1,4 @@
|
|||
-- Missing the 0x prefix.
|
||||
(program 0.0.0
|
||||
(con bls12_381_G2_element c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)
|
||||
)
|
|
@ -0,0 +1 @@
|
|||
parse error
|
|
@ -0,0 +1 @@
|
|||
parse error
|
|
@ -0,0 +1,4 @@
|
|||
-- This has # instead of 0x.
|
||||
(program 0.0.0
|
||||
(con bls12_381_G2_element #c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)
|
||||
)
|
|
@ -0,0 +1 @@
|
|||
parse error
|
|
@ -0,0 +1 @@
|
|||
parse error
|
|
@ -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)
|
||||
)
|
|
@ -0,0 +1 @@
|
|||
parse error
|
|
@ -0,0 +1 @@
|
|||
parse error
|
|
@ -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)
|
||||
)
|
|
@ -0,0 +1 @@
|
|||
parse error
|
|
@ -0,0 +1 @@
|
|||
parse error
|
|
@ -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)
|
||||
)
|
|
@ -0,0 +1 @@
|
|||
parse error
|
|
@ -0,0 +1 @@
|
|||
parse error
|
|
@ -0,0 +1 @@
|
|||
(program 0.0.0 (con bytestring #00ff))
|
|
@ -0,0 +1,2 @@
|
|||
({cpu: 16100
|
||||
| mem: 200})
|
|
@ -0,0 +1 @@
|
|||
(program 0.0.0 (con bytestring #00ff))
|
|
@ -0,0 +1,3 @@
|
|||
(program 1.0.0
|
||||
(con bytestring #54686543616B654973414C6965)
|
||||
)
|
|
@ -0,0 +1,2 @@
|
|||
({cpu: 16100
|
||||
| mem: 200})
|
|
@ -0,0 +1 @@
|
|||
(program 1.0.0 (con bytestring #54686543616B654973414C6965))
|
|
@ -0,0 +1,3 @@
|
|||
(program 1.0.0
|
||||
(con bytestring #)
|
||||
)
|
|
@ -0,0 +1,2 @@
|
|||
({cpu: 16100
|
||||
| mem: 200})
|
|
@ -0,0 +1 @@
|
|||
(program 1.0.0 (con bytestring #))
|
|
@ -0,0 +1,3 @@
|
|||
(program 1.0.0
|
||||
(con bytestring #12345)
|
||||
)
|
|
@ -0,0 +1 @@
|
|||
parse error
|
|
@ -0,0 +1 @@
|
|||
parse error
|
|
@ -0,0 +1 @@
|
|||
(program 0.0.0 (con integer 0))
|
|
@ -0,0 +1,2 @@
|
|||
({cpu: 16100
|
||||
| mem: 200})
|
|
@ -0,0 +1 @@
|
|||
(program 0.0.0 (con integer 0))
|
|
@ -0,0 +1 @@
|
|||
(program 0.0.0 (con integer 1))
|
|
@ -0,0 +1,2 @@
|
|||
({cpu: 16100
|
||||
| mem: 200})
|
|
@ -0,0 +1 @@
|
|||
(program 0.0.0 (con integer 1))
|
|
@ -0,0 +1 @@
|
|||
(program 0.0.0 (con integer -1))
|
|
@ -0,0 +1,2 @@
|
|||
({cpu: 16100
|
||||
| mem: 200})
|
|
@ -0,0 +1 @@
|
|||
(program 0.0.0 (con integer -1))
|
|
@ -0,0 +1 @@
|
|||
(program 0.0.0 (con integer 000000000000000000000000000000000000012345))
|
|
@ -0,0 +1,2 @@
|
|||
({cpu: 16100
|
||||
| mem: 200})
|
|
@ -0,0 +1 @@
|
|||
(program 0.0.0 (con integer 12345))
|
|
@ -0,0 +1 @@
|
|||
(program 0.0.0 (con integer -000000000000000000000000000000000000012345))
|
|
@ -0,0 +1,2 @@
|
|||
({cpu: 16100
|
||||
| mem: 200})
|
|
@ -0,0 +1 @@
|
|||
(program 0.0.0 (con integer -12345))
|
|
@ -0,0 +1 @@
|
|||
(program 0.0.0 (con integer 7934472584735297345829374203940389857324250374130461237461374324689198237413246172439813568362847918324132461234689173469172364972574327894626348923469234728574196241238723984567805163407561370166661807515263473485635726))
|
|
@ -0,0 +1,2 @@
|
|||
({cpu: 16100
|
||||
| mem: 200})
|
|
@ -0,0 +1,7 @@
|
|||
(program
|
||||
0.0.0
|
||||
(con
|
||||
integer
|
||||
7934472584735297345829374203940389857324250374130461237461374324689198237413246172439813568362847918324132461234689173469172364972574327894626348923469234728574196241238723984567805163407561370166661807515263473485635726
|
||||
)
|
||||
)
|
|
@ -0,0 +1 @@
|
|||
(program 0.0.0 (con integer -7934472584735297345829374203940389857324250374130461237461374324689198237413246172439813568362847918324132461234689173469172364972574327894626348923469234728574196241238723984567805163407561370166661807515263473485635726))
|
|
@ -0,0 +1,2 @@
|
|||
({cpu: 16100
|
||||
| mem: 200})
|
|
@ -0,0 +1,7 @@
|
|||
(program
|
||||
0.0.0
|
||||
(con
|
||||
integer
|
||||
-7934472584735297345829374203940389857324250374130461237461374324689198237413246172439813568362847918324132461234689173469172364972574327894626348923469234728574196241238723984567805163407561370166661807515263473485635726
|
||||
)
|
||||
)
|
|
@ -0,0 +1 @@
|
|||
(program 0.0.0 (con integer +7934472584735297345829374203940389857324250374130461237461374324689198237413246172439813568362847918324132461234689173469172364972574327894626348923469234728574196241238723984567805163407561370166661807515263473485635726))
|
|
@ -0,0 +1,2 @@
|
|||
({cpu: 16100
|
||||
| mem: 200})
|
|
@ -0,0 +1,7 @@
|
|||
(program
|
||||
0.0.0
|
||||
(con
|
||||
integer
|
||||
7934472584735297345829374203940389857324250374130461237461374324689198237413246172439813568362847918324132461234689173469172364972574327894626348923469234728574196241238723984567805163407561370166661807515263473485635726
|
||||
)
|
||||
)
|
|
@ -0,0 +1 @@
|
|||
(program 0.0.0 (con integer 0.5))
|
|
@ -0,0 +1 @@
|
|||
parse error
|
|
@ -0,0 +1 @@
|
|||
parse error
|
|
@ -0,0 +1,2 @@
|
|||
(program 0.0.0 (con (list bool) [5])
|
||||
)
|
|
@ -0,0 +1 @@
|
|||
parse error
|
|
@ -0,0 +1 @@
|
|||
parse error
|
|
@ -0,0 +1,2 @@
|
|||
(program 0.0.0 (con (list bool) [(lam x (lam y x))])
|
||||
)
|
|
@ -0,0 +1 @@
|
|||
parse error
|
|
@ -0,0 +1 @@
|
|||
parse error
|
|
@ -0,0 +1 @@
|
|||
(program 0.0.0 (con (pair integer string) ((lam x x), 1))
|
|
@ -0,0 +1 @@
|
|||
parse error
|
|
@ -0,0 +1 @@
|
|||
parse error
|
|
@ -0,0 +1 @@
|
|||
(program 0.0.0 (con (pair integer string) (1, (lam y y))))
|
|
@ -0,0 +1 @@
|
|||
parse error
|
|
@ -0,0 +1 @@
|
|||
parse error
|
|
@ -0,0 +1,4 @@
|
|||
(program 1.0.0 [
|
||||
[ [ (builtin andByteString) (con bool False) ] (con bytestring #) ]
|
||||
(con bytestring #ff)
|
||||
])
|
|
@ -0,0 +1,2 @@
|
|||
({cpu: 213726
|
||||
| mem: 801})
|
|
@ -0,0 +1 @@
|
|||
(program 1.0.0 (con bytestring #))
|
|
@ -0,0 +1,4 @@
|
|||
(program 1.0.0 [
|
||||
[ [ (builtin andByteString) (con bool False) ] (con bytestring #ff) ]
|
||||
(con bytestring #)
|
||||
])
|
|
@ -0,0 +1,2 @@
|
|||
({cpu: 213726
|
||||
| mem: 801})
|
|
@ -0,0 +1 @@
|
|||
(program 1.0.0 (con bytestring #))
|
|
@ -0,0 +1,4 @@
|
|||
(program 1.0.0 [
|
||||
[ [ (builtin andByteString) (con bool False) ] (con bytestring #ff) ]
|
||||
(con bytestring #00)
|
||||
])
|
|
@ -0,0 +1,2 @@
|
|||
({cpu: 213726
|
||||
| mem: 801})
|
|
@ -0,0 +1 @@
|
|||
(program 1.0.0 (con bytestring #00))
|
|
@ -0,0 +1,4 @@
|
|||
(program 1.0.0 [
|
||||
[ [ (builtin andByteString) (con bool False) ] (con bytestring #00) ]
|
||||
(con bytestring #ff)
|
||||
])
|
|
@ -0,0 +1,2 @@
|
|||
({cpu: 213726
|
||||
| mem: 801})
|
|
@ -0,0 +1 @@
|
|||
(program 1.0.0 (con bytestring #00))
|
|
@ -0,0 +1,4 @@
|
|||
(program 1.0.0 [
|
||||
[ [ (builtin andByteString) (con bool False) ] (con bytestring #4f00) ]
|
||||
(con bytestring #f4)
|
||||
])
|
|
@ -0,0 +1,2 @@
|
|||
({cpu: 213726
|
||||
| mem: 801})
|
|
@ -0,0 +1 @@
|
|||
(program 1.0.0 (con bytestring #44))
|
|
@ -0,0 +1,4 @@
|
|||
(program 1.0.0 [
|
||||
[ [ (builtin andByteString) (con bool True) ] (con bytestring #) ]
|
||||
(con bytestring #ff)
|
||||
])
|
|
@ -0,0 +1,2 @@
|
|||
({cpu: 213726
|
||||
| mem: 801})
|
|
@ -0,0 +1 @@
|
|||
(program 1.0.0 (con bytestring #ff))
|
|
@ -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
Loading…
Reference in New Issue