(self)
| 567 | self.assertEqual(groups[2].results, matchedresult[2]) |
| 568 | |
| 569 | def test_pipe(self): |
| 570 | cmd = "bar | baz" |
| 571 | matchedresult = [ |
| 572 | [MR(4, 5, help_constants.PIPELINES, "|")], |
| 573 | [MR(0, 3, "bar synopsis", "bar")], |
| 574 | [MR(6, 9, "baz synopsis", "baz")], |
| 575 | ] |
| 576 | |
| 577 | groups = matcher.Matcher(cmd, s).match() |
| 578 | self.assertEqual(groups[0].results, matchedresult[0]) |
| 579 | self.assertEqual(groups[1].results, matchedresult[1]) |
| 580 | |
| 581 | def test_subshells(self): |
| 582 | cmd = "((bar); bar)" |