Support subpattern sequences in stack like slowcat in ref #87
This commit is contained in:
parent
9df20fcbc5
commit
a4cacc079e
2 changed files with 11 additions and 3 deletions
|
|
@ -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 () {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue