(self)
| 13 | self.assertEqual(result, expected) |
| 14 | |
| 15 | def test_escape(self): |
| 16 | pattern = r"\\\^\$\.\|\?\*\+\(\)\[" |
| 17 | expected = [("\\^$.|?*+()[", [])] |
| 18 | result = regex_helper.normalize(pattern) |
| 19 | self.assertEqual(result, expected) |
| 20 | |
| 21 | def test_group_positional(self): |
| 22 | pattern = r"(.*)-(.+)" |