mirror of
https://github.com/CatalaLang/catala.git
synced 2024-11-08 17:10:22 +03:00
Add function test
This commit is contained in:
parent
785685a9f7
commit
70c6a833e2
14
tests/test_func/func.catala
Normal file
14
tests/test_func/func.catala
Normal file
@ -0,0 +1,14 @@
|
||||
/*
|
||||
declaration scope S:
|
||||
context f content int depends on int
|
||||
context x content int
|
||||
context b content bool
|
||||
|
||||
scope S:
|
||||
def f of x ? (x >= x) |= x + x
|
||||
def f of x ? not b |= x * x
|
||||
|
||||
def b = false
|
||||
|
||||
def x = f of 3
|
||||
*/
|
Loading…
Reference in New Issue
Block a user