Skip to content

Commit

Permalink
refactor: to match updated outputs (9801987026e4e35aba0b96442b5d9517d…
Browse files Browse the repository at this point in the history
…c066b5e)
  • Loading branch information
izexi committed Oct 24, 2020
1 parent 7f6bc99 commit 325a2e2
Showing 1 changed file with 15 additions and 11 deletions.
26 changes: 15 additions & 11 deletions test/projects/test_lps.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,29 +9,33 @@
(
'no input',
None,
'Incorrect input provided. Program Terminated'
'Usage: please provide a string that contains at least one palindrome'
), (
'empty input',
"",
'Incorrect input provided. Program Terminated'
'Usage: please provide a string that contains at least one palindrome'
), (
'invalid input: no palindromic present',
"Polip",
'No Palindromic substring present.'
'invalid input: no palindromes',
"polip",
'Usage: please provide a string that contains at least one palindrome'
)
]
)

valid_permutations = (
'description,in_params,expected', [
(
'sample input: longest palindrome of 6eie6',
'6eie6o6',
'Longest Palindromic Substring is: 6eie6'
'sample input: one palindrome',
'racecar',
'racecar'
), (
'sample input: longest palindrome of 6oooo6',
'6eie6o6oooo6',
'Longest Palindromic Substring is: 6oooo6'
'sample input: two palindrome',
'kayak mom',
'kayak'
), (
'sample input: complex palindrome',
'step on no pets',
'step on no pets'
),
]
)
Expand Down

0 comments on commit 325a2e2

Please sign in to comment.