-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPalindrome.feature
44 lines (35 loc) · 1.29 KB
/
Palindrome.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
34
35
36
37
38
39
40
Feature: Test palindrome functionality
<<<<<<< HEAD
=======
>>>>>>> mike
As a user of String Magic
I want to be able to test a string or integer
So that I can easily determine whether it is a palindrome.
<<<<<<< HEAD
@PalindromeString
=======
@Palindrome
>>>>>>> mike
#This will test if the palindrome feature works for non-numeric strings
Scenario: String is non-numeric and a palindrome
Given the user enters racecar palindrome
When the user hits enter
Then the response is "You wrote a palindrome!"
@Palindrome
#This will test if the palindrome feature works for non-numeric strings
Scenario: String is non-numeric and not a palindrome
Given the user enters car palindrome
When the user hits enter
Then the response is "You wrote neither a number nor a palindrome!"
@Palindrome
#This test will determine if the palindrome feature works for numeric strings
Scenario: String is an integer and a palindrome
Given the user enters 12321 palindrome
When the user hits enter
Then the response is "You wrote a number that is a palindrome!"
@Palindrome
#This test will determine if the palindrome feature works for numeric strings
Scenario: String is an integer but is not a palindrome
Given the user enters 12345 palindrome
When the user hits enter
Then the response is "You wrote a number but not a palindrome!"