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
Feature: Basket price calculation | |
Scenario Outline: Basket without discounted price | |
Given A basket that not contains any book | |
When I add <time> times the book <book_title> into the basket | |
Then The price of the basket is <basket_price> | |
Examples: | |
| time | book_title | basket_price | | |
| 1 | 2 | 8.00 | | |
| 2 | 1 | 15.20 | | |
| 3 | 5 | 18 | | |
Scenario Outline: Basket with discounted price | |
Given A basket that not contains any book | |
When I add those <books> into the basket | |
Then The price of the basket is <basket_price> | |
Examples: | |
| books | basket_price | | |
| 1,2 | 16.00 | | |
| 1,2,3 | 24.00 | | |
| 1,2,3,4 | 32.00 | | |
| 1,2,3,4,5 | 40.00 | | |
| 1,1,2,2,3,3,4,5 | 61.60 | | |
| 1,1,2,2,2,3,3,3,3,4,5 | 73.20 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment