catala/tests/test_metadata/good/test_markup_refactoring.catala_en

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

42 lines
580 B
Plaintext
Raw Normal View History

# Test the refactored metatdata markup
```catala-metadata
declaration enumeration E:
-- A
-- B
declaration scope S:
context output a content E
```
Some law text...
```catala-metadata
declaration scope S2:
context output b content E
```
## PROGRAM
```catala
scope S:
definition a equals A
```
```catala
scope S2:
definition b equals B
```
```catala-test-inline
$ catala Interpret -s S2
[RESULT] Computation successful! Results:
[RESULT] b = B ()
```
```catala-test-inline
$ catala Interpret -s S
[RESULT] Computation successful! Results:
[RESULT] a = A ()
```