예제 #1
0
 def test__parse_expression_multiple(self):
     self.assertEqual(_parse_expression('x_plural<s|ve>'),
                      ('x', ['s', 've']))
예제 #2
0
 def test__parse_expression_default(self):
     self.assertEqual(_parse_expression('x_plural'), ('x', ['s']))
예제 #3
0
 def test__parse_expression_single(self):
     self.assertEqual(_parse_expression('x_plural<es>'), ('x', ['es']))
예제 #4
0
 def test__parse_expression_no_match(self):
     self.assertEqual(_parse_expression('x_suffix<s>'), (None, None))
     self.assertEqual(_parse_expression('_plural<s>'), (None, None))
     self.assertEqual(_parse_expression('x_plural<>'), (None, None))
     self.assertEqual(_parse_expression('x_plural<s>>'), (None, None))