Created
September 18, 2020 14:38
-
-
Save mickaelw/7ef18392098d34d044d78e9bbbd9deb3 to your computer and use it in GitHub Desktop.
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
# language: fr | |
Fonctionnalité: Calcul du prix du panier | |
Plan du Scénario: Prix du panier sans réduction | |
Étant donné Un panier contenant aucun livre | |
Quand J’ajoute <fois> fois le livre <titre> dans le panier | |
Alors Le prix du panier est <prix> | |
Exemples: | |
| fois | titre | prix | | |
| 1 | T2 | 8.00 | | |
| 2 | T1 | 15.20 | | |
| 3 | T5 | 21.60 | | |
| 4 | T3 | 25.60 | | |
| 5 | T4 | 30.00 | | |
Plan du Scénario: Prix du panier avec une réduction | |
Étant donné Un panier contenant aucun livre | |
Quand J’ajoute les livres <livres> dans le panier | |
Alors Le prix du panier est <prix> | |
Exemples: | |
| books | prix | | |
| T1,T2 | 16.00 | | |
| T1,T2,T3 | 24.00 | | |
| T1,T2,T3,T4 | 32.00 | | |
| T1,T2,T3,T4,T5 | 40.00 | | |
| T1,T1,T2,T2,T3,T3,T4,T5 | 61.60 | | |
| T1,T1,T2,T2,T2,T3,T3,T3,T3,T4,T5 | 78.40 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment