Exemplo n.º 1
0
 def test_remove_ca_empty_string(self):
     """Test remove_ca with an empty string."""
     actual_output = CHATUtteranceCleaner.remove_ca('')
     desired_output = ''
     self.assertEqual(actual_output, desired_output)
Exemplo n.º 2
0
 def test_remove_ca_satellite_marker(self):
     """Test remove_ca with satellite marker (‡)."""
     actual_output = CHATUtteranceCleaner.remove_ca('no ‡ Mommy no go')
     desired_output = 'no Mommy no go'
     self.assertEqual(actual_output, desired_output)
Exemplo n.º 3
0
 def test_remove_ca_falling_rising_mark(self):
     """Test remove_ca with 3 rising (↑) and 1 falling (↓) mark."""
     actual_output = CHATUtteranceCleaner.remove_ca(
         'Hey↑ there↓ what up↑ no↑')
     desired_output = 'Hey there what up no'
     self.assertEqual(actual_output, desired_output)
Exemplo n.º 4
0
 def test_remove_ca_marked_question(self):
     """Test remove_ca with marked question („)."""
     actual_output = CHATUtteranceCleaner.remove_ca('Hey there„ what up no')
     desired_output = 'Hey there what up no'
     self.assertEqual(actual_output, desired_output)
Exemplo n.º 5
0
 def test_remove_ca_quotations(self):
     """Test remove_ca with opening and closing quotations."""
     actual_output = CHATUtteranceCleaner.remove_ca(
         '“Hey there what up no”')
     desired_output = 'Hey there what up no'
     self.assertEqual(actual_output, desired_output)