diff --git a/tests/test_literate/good/output/test_spe_char.catala.Test.out b/tests/test_literate/good/output/test_grave_char.catala.A.out similarity index 100% rename from tests/test_literate/good/output/test_spe_char.catala.Test.out rename to tests/test_literate/good/output/test_grave_char.catala.A.out diff --git a/tests/test_literate/good/output/test_grave_char.catala_en.A.out b/tests/test_literate/good/output/test_grave_char.catala_en.A.out new file mode 100644 index 00000000..a658dffc --- /dev/null +++ b/tests/test_literate/good/output/test_grave_char.catala_en.A.out @@ -0,0 +1,2 @@ +[RESULT] Computation successful! Results: +[RESULT] literate_parsing_is_ok = true diff --git a/tests/test_literate/good/output/test_grave_char.catala_fr.A.out b/tests/test_literate/good/output/test_grave_char.catala_fr.A.out new file mode 100644 index 00000000..a658dffc --- /dev/null +++ b/tests/test_literate/good/output/test_grave_char.catala_fr.A.out @@ -0,0 +1,2 @@ +[RESULT] Computation successful! Results: +[RESULT] literate_parsing_is_ok = true diff --git a/tests/test_literate/good/test_spe_char.catala b/tests/test_literate/good/test_grave_char.catala similarity index 85% rename from tests/test_literate/good/test_spe_char.catala rename to tests/test_literate/good/test_grave_char.catala index a7654bac..b3b0c25e 100644 --- a/tests/test_literate/good/test_spe_char.catala +++ b/tests/test_literate/good/test_grave_char.catala @@ -1,4 +1,4 @@ -## Law text should be able to contain '`'. +## Law text should be able to contain grave accent '`'. This is a block of law text containing `. This allows to: @@ -16,10 +16,10 @@ let () = print_endline "Hello world!" **Remark**: for Fenced Code Blocks, ``` must be followed by a space or a new line. ```catala -new scope Test : +new scope A: param literate_parsing_is_ok content bool -scope Test : +scope A: def literate_parsing_is_ok := true ``` diff --git a/tests/test_literate/good/test_grave_char.catala_en b/tests/test_literate/good/test_grave_char.catala_en new file mode 100644 index 00000000..20de04c9 --- /dev/null +++ b/tests/test_literate/good/test_grave_char.catala_en @@ -0,0 +1,26 @@ +## 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: + +``` +let () = print_endline "Hello world!" +``` + +**Remark**: for Fenced Code Blocks, ``` must be followed by a space or a new line. + +```catala +declaration scope A: + context literate_parsing_is_ok content boolean + +scope A: + definition literate_parsing_is_ok equals true +``` + +Even after `Catala` code block. diff --git a/tests/test_literate/good/test_grave_char.catala_fr b/tests/test_literate/good/test_grave_char.catala_fr new file mode 100644 index 00000000..09f0a099 --- /dev/null +++ b/tests/test_literate/good/test_grave_char.catala_fr @@ -0,0 +1,26 @@ +## 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: + +``` +let () = print_endline "Hello world!" +``` + +**Remark**: for Fenced Code Blocks, ``` must be followed by a space or a new line. + +```catala +déclaration champ d'application A: + contexte literate_parsing_is_ok contenu booléen + +champ d'application A: + définition literate_parsing_is_ok égal à vrai +``` + +Even after `Catala` code block.