def test_check_spelling_empty_list_input(self): # Setup input_text = [] expected_output = '' # Actual call output_text = check_spelling(input_text) # Asserts self.assertEqual(output_text, expected_output)
def test_check_spelling_none(self): # Setup input_text = None expected_output = '' # Actual call output_text = check_spelling(input_text) # Asserts self.assertEqual(output_text, expected_output)
def test_check_spelling_all_errors_list(self): # Setup input_text = ['Helllo', 'worlld', 'nicee', 'to', 'meeet'] expected_output = 'hello world nice to meet' # Actual call output_text = check_spelling(input_text) # Asserts self.assertEqual(output_text, expected_output)
def test_check_spelling_all_errors(self): # Setup input_text = 'Helllo worlld nicee to meeet' expected_output = 'hello world nice to meet' # Actual call output_text = check_spelling(input_text) # Asserts self.assertEqual(output_text, expected_output)
def test_check_spelling_no_spelling_error_list(self): # Setup input_text = ["hello", "world"] expected_output = "hello world" # Actual call output_text = check_spelling(input_text) # Asserts self.assertEqual(output_text, expected_output)
def test_check_spelling_no_spelling_error(self): # Setup input_text = "Hello world!" expected_output = "hello world !" # Actual call output_text = check_spelling(input_text) # Asserts self.assertEqual(output_text, expected_output)