mirror of
https://github.com/CatalaLang/catala.git
synced 2024-11-08 07:51:43 +03:00
Simple test
This commit is contained in:
parent
79a261bb47
commit
1d4119c3a3
19
tests/test_backends/simple.catala_en
Normal file
19
tests/test_backends/simple.catala_en
Normal file
@ -0,0 +1,19 @@
|
||||
```catala
|
||||
declaration structure Foo:
|
||||
data x content boolean
|
||||
data y content decimal
|
||||
|
||||
declaration enumeration Bar:
|
||||
-- No
|
||||
-- Yes content Foo
|
||||
|
||||
declaration scope Baz:
|
||||
input a content Bar
|
||||
output b content decimal
|
||||
|
||||
scope Baz:
|
||||
definition b equals
|
||||
match a with pattern
|
||||
-- No: 0.0
|
||||
-- Yes of foo: foo.y + if foo.x then 1.0 else 0.0
|
||||
```
|
Loading…
Reference in New Issue
Block a user