Rename test cases in reverse_string_test.py so that they will run (#1149)
This commit is contained in:
committed by
Corey McCandless
parent
5ab75e46d2
commit
8fe46486e3
@@ -6,19 +6,19 @@ from reverse_string import reverse
|
||||
# Tests adapted from `problem-specifications//canonical-data.json` @ v1.0.1
|
||||
|
||||
class ReverseStringTests(unittest.TestCase):
|
||||
def empty_string(self):
|
||||
def test_empty_string(self):
|
||||
self.assertEqual(reverse(''), '')
|
||||
|
||||
def a_word(self):
|
||||
def test_a_word(self):
|
||||
self.assertEqual(reverse('robot'), 'tobor')
|
||||
|
||||
def a_capitalized_word(self):
|
||||
def test_a_capitalized_word(self):
|
||||
self.assertEqual(reverse('Ramen'), 'nemaR')
|
||||
|
||||
def a_sentence_with_punctuation(self):
|
||||
def test_a_sentence_with_punctuation(self):
|
||||
self.assertEqual(reverse('I\'m hungry!'), '!yrgnuh m\'I')
|
||||
|
||||
def a_palindrome(self):
|
||||
def test_a_palindrome(self):
|
||||
self.assertEqual(reverse('racecar'), 'racecar')
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user