* Create BDD.py Initialize the lexer file of BDD Add keywords of BDD * Update the 'RegexLexer' * Edit and test * Update BDD.py * Update BDD.py * Update the BddLexer file * Update the BddLexer of root tokens * edit bdd Add regular expression for tokens * edit bdd Add regular expression for tokens * add .gitignore * updata bdd.lexer * Delete bdd.py * Update the Keywords, Numbers, Punctuation token * bdd.py Assign different colors to keywords, punctuation, numbers, and variables. * Update the BddLexer file * Update bdd.py Fix the file name. * Add the detection for '@' Co-Authored-By: OMGJL <8707895+OMGJL@users.noreply.github.com> * Update bdd.py Add detection of double quotes. Co-Authored-By: OMGJL <8707895+OMGJL@users.noreply.github.com> * Fix the double quotes * fix the quote recognition * add comments * update the root dir * add bdd test cases * Delete .DS_Store * Delete .DS_Store * Delete .DS_Store * remove DS file * restore the gitignore file * update the bdd lexer * update the bdd lexer * update the whitespace highlight * update the whitespace highlight * refactor the bdd.py * update the punctuation * update the punctuation * update bdd token Change "." to the "\S+", Which reduce the test output file size. Co-Authored-By: OMGJL <8707895+OMGJL@users.noreply.github.com> * Update bdd.py Reduce the new token for each space Co-authored-by: Hongyuan Yan <hongyuan.yan@student.adelaide.edu.au> Co-authored-by: OMGJL <lzhsjunkmail@gmail.com> Co-authored-by: Hongyuan Yan <54675432+kirito330824@users.noreply.github.com> Co-authored-by: Jessie2110 <71688609+Jessie2110@users.noreply.github.com> Co-authored-by: Jessie2110 <wuqiong2110@gmail.com> Co-authored-by: OMGJL <8707895+OMGJL@users.noreply.github.com>
31 lines
No EOL
877 B
Gherkin
31 lines
No EOL
877 B
Gherkin
#!text
|
|
View Quotes should do something
|
|
Meta:
|
|
@verifies G989
|
|
|
|
Feature: Serve coffee
|
|
Coffee should not be served until paid for
|
|
Coffee should not be served until the button has been pressed
|
|
If there is no coffee left then money should be refunded
|
|
|
|
Background:
|
|
Given a global administrator named "Greg"
|
|
And a blog named "Greg's anti-tax rants"
|
|
And a customer named "Dr. Bill"
|
|
And a blog named "Expensive Therapy" owned by "Dr. Bill"
|
|
|
|
Scenario: Buy last coffee
|
|
Given there are 1 coffees left in the machine
|
|
And I have deposited 1$
|
|
When I press the coffee button
|
|
Then I should be served a coffee
|
|
|
|
Scenario Outline: eating
|
|
Given there are <start> cucumbers
|
|
When I eat <eat> cucumbers
|
|
Then I should have <left> cucumbers
|
|
|
|
Examples:
|
|
| start | eat | left |
|
|
| 12 | 5 | 7 |
|
|
| 20 | 5 | 15 | |