(self)
| 690 | ) |
| 691 | |
| 692 | def test_comsub_as_first_word(self): |
| 693 | cmd = "$(a) b" |
| 694 | |
| 695 | m = matcher.Matcher(cmd, s) |
| 696 | groups = m.match() |
| 697 | self.assertEqual(len(groups), 2) |
| 698 | self.assertEqual(groups[0].results, []) |
| 699 | self.assertEqual(groups[1].results, [MR(0, 6, None, "$(a) b")]) |
| 700 | |
| 701 | # check expansions |
| 702 | self.assertEqual(m.expansions, [(2, 3, "substitution")]) |
| 703 | |
| 704 | def test_procsub(self): |
| 705 | cmd = "withargs -b <(a) >(b)" |