Beispiel #1
0
 def test_get_target_alternative_two_alternatives(self):
     """Test get_target_alternative with 2 alternatives."""
     utterance = ('nuutuinnaq [=? nauk tainna] hela nuutuinnaq '
                  '[=? nauk tainna] .')
     actual_output = InuktitutReader.get_target_alternative(utterance)
     desired_output = 'nuutuinnaq hela nuutuinnaq .'
     self.assertEqual(actual_output, desired_output)
Beispiel #2
0
 def test_get_target_alternative_single_alternative(self):
     """Test get_target_alternative with 1 alternative."""
     utterance = 'nuutuinnaq [=? nauk tainna]'
     actual_output = InuktitutReader.get_target_alternative(utterance)
     desired_output = 'nuutuinnaq'
     self.assertEqual(actual_output, desired_output)