mirror of
https://github.com/CatalaLang/catala.git
synced 2024-11-08 07:51:43 +03:00
56 lines
710 B
Plaintext
56 lines
710 B
Plaintext
# 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 Typecheck --check-invariants
|
|
┌─[RESULT]─
|
|
│ All invariant checks passed
|
|
└─
|
|
┌─[RESULT]─
|
|
│ Typechecking successful!
|
|
└─
|
|
```
|
|
|
|
```catala-test-inline
|
|
$ catala test-scope S2
|
|
┌─[RESULT]─
|
|
│ b = B ()
|
|
└─
|
|
```
|
|
|
|
```catala-test-inline
|
|
$ catala test-scope S
|
|
┌─[RESULT]─
|
|
│ a = A ()
|
|
└─
|
|
```
|