catala/tests/test_literate/good/test_grave_char.catala_pl

47 lines
929 B
Plaintext

## Law text should be able to contain grave accent '`'.
This is a block of law text containing `.
This allows to:
* use `Markdown` code block inside `Catala` files,
* _escape_ special characters such as `#` or `>`,
* use Fenced Code Blocks:
```ocaml
let () = print_endline "Hello world!"
```
```catala
deklaracja zakres A:
kontekst wyjście literate_parsing_is_ok typu zerojedynkowy
zakres A:
definicja literate_parsing_is_ok wynosi prawda
```
Even after `Catala` code block:
```c
int main(void) { return 0; }
```
```catala-test-inline
$ catala Interpret -s A
[RESULT] Computation successful! Results:
[RESULT] literate_parsing_is_ok = prawda
```
```catala-test-inline
$ catala Interpret -s A
[RESULT] Computation successful! Results:
[RESULT] literate_parsing_is_ok = prawda
```
```catala-test-inline
$ catala Interpret -s A
[RESULT] Computation successful! Results:
[RESULT] literate_parsing_is_ok = prawda
```