-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modify test generator to take language into account
- Loading branch information
Showing
4 changed files
with
148 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
> Module Francais | ||
|
||
```catala-metadata | ||
déclaration champ d'application TestFrançais: | ||
entrée durée_promotion contenu durée | ||
entrée début_promotion contenu date | ||
entrée jour_achat contenu date | ||
entrée prix contenu argent | ||
entrée taux_promo contenu décimal | ||
résultat prix_final contenu argent | ||
``` | ||
|
||
```catala | ||
champ d'application TestFrançais: | ||
définition prix_final égal à | ||
si jour_achat <= début_promotion | ||
ou jour_achat > début_promotion + durée_promotion alors | ||
prix | ||
sinon prix * (1,0 - taux_promo) | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
> Usage de Francais | ||
|
||
```catala | ||
déclaration champ d'application French_test: | ||
résultat test_francais champ d'application Francais.TestFrançais | ||
|
||
champ d'application French_test: | ||
définition test_francais.durée_promotion égal à 7 jour | ||
définition test_francais.début_promotion égal à |2024-01-07| | ||
définition test_francais.jour_achat égal à |2024-01-10| | ||
définition test_francais.prix égal à 100,00 € | ||
définition test_francais.taux_promo égal à 0,2 | ||
assertion (test_francais.prix_final = 80,00 €) | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters