add whitespace test and changelog
This commit is contained in:
parent
4937c176bb
commit
5e3b8ff690
2 changed files with 22 additions and 0 deletions
1
changelogs/unreleased/1232-dark64
Normal file
1
changelogs/unreleased/1232-dark64
Normal file
|
@ -0,0 +1 @@
|
|||
Loosen up whitespace restrictions to allow more formatting styles
|
21
zokrates_core_test/tests/tests/whitespace.zok
Normal file
21
zokrates_core_test/tests/tests/whitespace.zok
Normal file
|
@ -0,0 +1,21 @@
|
|||
from "field" import FIELD_MIN,
|
||||
FIELD_MAX,
|
||||
FIELD_SIZE_IN_BITS;
|
||||
|
||||
struct Foo
|
||||
{
|
||||
field a;
|
||||
field b;
|
||||
}
|
||||
|
||||
def main(
|
||||
private Foo foo,
|
||||
field c
|
||||
) -> bool
|
||||
{
|
||||
field[2] arr = [
|
||||
foo.a,
|
||||
foo.b
|
||||
];
|
||||
return arr[0] * arr[1] == c;
|
||||
}
|
Loading…
Reference in a new issue