catala/tests/literate/good/test_grave_char_fr.catala_fr
2024-02-15 14:53:26 +01:00

43 lines
827 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
déclaration champ d'application A:
contexte résultat literate_parsing_is_ok contenu booléen
champ d'application A:
définition literate_parsing_is_ok égal à vrai
```
Even after `Catala` code block:
```c
int main(void) { return 0; }
```
```catala-test-inline
$ catala Typecheck --check-invariants
[RESULT] All invariant checks passed
[RESULT] Typechecking successful!
```
```catala-test-inline
$ catala Interpret -s A
[RESULT] Computation successful! Results:
[RESULT] literate_parsing_is_ok = vrai
```