1
0
Fork 0
mirror of synced 2025-09-23 12:18:44 +00:00

Merge pull request #741 from Zokrates/add-memoize-test

Add array memoize test
This commit is contained in:
Thibaut Schaeffer 2021-02-04 13:28:04 +01:00 committed by GitHub
commit 76f1c0742d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 25 additions and 0 deletions

View file

@ -0,0 +1,15 @@
{
"entry_point": "./tests/tests/memoize/no_array_memoization.zok",
"tests": [
{
"input": {
"values": []
},
"output": {
"Ok": {
"values": []
}
}
}
]
}

View file

@ -0,0 +1,10 @@
def foo(field[1] a) -> field:
return a[0]
def main():
field[1] a = [1]
field b = foo(a)
a[0] = 0
field c = foo(a)
assert(c == 0)
return