def test_remove_special_character_empty_input(self): # Setup input_text = '' expected_output = '' # Actual call output_text = remove_special_character(input_text) # Asserts self.assertEqual(output_text, expected_output)
def test_remove_special_character_no_special_characters(self): # Setup input_text = 'Hello world' expected_output = 'Hello world' # Actual call output_text = remove_special_character(input_text) # Asserts self.assertEqual(output_text, expected_output)
def test_remove_special_character_all_special_characters(self): # Setup input_text = '弫¥ª°©ð±§µæ¹¢³¿®ä£' expected_output = '' # Actual call output_text = remove_special_character(input_text) # Asserts self.assertEqual(output_text, expected_output)
def test_remove_special_character(self): # Setup input_text = 'Hello 弫 Welcome.' expected_output = 'Hello Welcome.' # Actual call output_text = remove_special_character(input_text) # Asserts self.assertEqual(output_text, expected_output)