Support subpattern sequences in stack like slowcat in ref #87

This commit is contained in:
alex 2022-04-23 09:47:12 +01:00
parent 9df20fcbc5
commit a4cacc079e
2 changed files with 11 additions and 3 deletions

View file

@ -247,6 +247,12 @@ describe('Pattern', function () {
['a', 'b', 'c'],
);
});
it('Can stack subpatterns', function () {
sameFirst(
stack('a', ['b','c']),
stack('a', sequence('b', 'c')),
);
});
});
describe('_fast()', function () {
it('Makes things faster', function () {