Created
March 2, 2017 17:31
-
-
Save ssmythe/74fbd90c355f7481bf448fb67c5903f8 to your computer and use it in GitHub Desktop.
Example FizzBuzz Kata Cucumber feature file
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: FizzBuzzKata | |
Write a program that prints the numbers from 1 to 100. But for multiples of three print "Fizz" instead of the number | |
and for the multiples of five print "Buzz". For numbers which are multiples of both three and five print "FizzBuzz". | |
Sample output: | |
1 | |
2 | |
Fizz | |
4 | |
Buzz | |
Fizz | |
7 | |
8 | |
Fizz | |
Buzz | |
11 | |
Fizz | |
13 | |
14 | |
FizzBuzz | |
16 | |
17 | |
Fizz | |
19 | |
Buzz | |
... etc up to 100 | |
Scenario: First scenario | |
Given the number "1" | |
When we run the number through do_fizzbuzz | |
Then we should get back "1" | |
# Scenario: Second scenario | |
# Given the number "2" | |
# When we run the number through do_fizzbuzz | |
# Then we should get back "2" | |
# | |
# Scenario: Third scenario | |
# Given the number "3" | |
# When we run the number through do_fizzbuzz | |
# Then we should get back "Fizz" | |
# | |
# Scenario: Fourth scenario | |
# Given the number "5" | |
# When we run the number through do_fizzbuzz | |
# Then we should get back "Buzz" | |
# | |
# Scenario: Fifth scenario | |
# Given the number "15" | |
# When we run the number through do_fizzbuzz | |
# Then we should get back "FizzBuzz" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment