support catting subpatterns, fixes #87
This commit is contained in:
parent
f4dd549a41
commit
9df20fcbc5
2 changed files with 10 additions and 1 deletions
|
|
@ -413,6 +413,12 @@ describe('Pattern', function () {
|
|||
['c'],
|
||||
);
|
||||
});
|
||||
it ('Can cat subpatterns', () => {
|
||||
sameFirst(
|
||||
slowcat('a', ['b','c']).fast(4),
|
||||
sequence('a', ['b', 'c']).fast(2)
|
||||
)
|
||||
})
|
||||
});
|
||||
describe('rev()', function () {
|
||||
it('Can reverse things', function () {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue