catala/tests/literate/good/test_grave_char_fr.catala_fr
2024-05-03 15:27:06 +02:00

48 lines
843 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 test-scope A
┌─[RESULT]─
│ literate_parsing_is_ok = vrai
└─
```