-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPrime.feature
35 lines (28 loc) · 1.18 KB
/
Prime.feature
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
Feature: Test prime functionality
As a user of String Magic
I want to be able to test a string
So that I can easily determine whether it is a prime integer, or, if it is not an integer, whether it has a prime number of letters.
@Prime
#This will test if the prime feature works for strings that are not integers
Scenario: String has a prime number of letters
Given the user enters fishing prime
When the user hits enter
Then the response is "You wrote a string that is prime!"
@Prime
#This will test if the prime feature works for strings that are not integers
Scenario: String does not have a prime number of letters
Given the user enters cars prime
When the user hits enter
Then the response is "You wrote a string that is not prime!"
@Prime
#This will test if the prime feature works for strings that are integers
Scenario: String is a prime number
Given the user enters 17 prime
When the user hits enter
Then the response is "You wrote a number that is prime!"
@Prime
#This will test if the prime feature works for strings that are integers
Scenario: String is not a prime number
Given the user enters 18 prime
When the user hits enter
Then the response is "You wrote a number that is not prime!"