add compile errors
This commit is contained in:
parent
23ee9a4c6d
commit
2306420c3b
3 changed files with 7 additions and 0 deletions
3
zokrates_cli/examples/compile_errors/double_negation.zok
Normal file
3
zokrates_cli/examples/compile_errors/double_negation.zok
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
def main():
|
||||||
|
field a = - - 1
|
||||||
|
return
|
3
zokrates_cli/examples/compile_errors/double_power.zok
Normal file
3
zokrates_cli/examples/compile_errors/double_power.zok
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
def main():
|
||||||
|
field a = 1**2**3 // parentheses are required here
|
||||||
|
return
|
|
@ -14,6 +14,7 @@ def main():
|
||||||
assert(0x00 ^ 0x00 == 0x00)
|
assert(0x00 ^ 0x00 == 0x00)
|
||||||
|
|
||||||
assert(0 - 2 ** 2 == -4)
|
assert(0 - 2 ** 2 == -4)
|
||||||
|
assert(-2**2 == -4)
|
||||||
|
|
||||||
//check if all statements have evalutated to true
|
//check if all statements have evalutated to true
|
||||||
assert(a * b * c * d * e * f == 1)
|
assert(a * b * c * d * e * f == 1)
|
||||||
|
|
Loading…
Reference in a new issue