Skip to content

Commit

Permalink
test: additional tests for steppped ranges
Browse files Browse the repository at this point in the history
  • Loading branch information
mrmlnc committed Jan 9, 2022
1 parent ef3dcf1 commit d4c16e4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/utils/pattern.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ describe('Utils → Pattern', () => {
// The second braces pass
assert.ok(util.isDynamicPattern('{a,b,{c,d}'));
assert.ok(util.isDynamicPattern('{1..3}'));
assert.ok(util.isDynamicPattern('{2..10..2}'));
});

it('should return false for brace extension when the `braceExpansion` option is disabled', () => {
Expand Down Expand Up @@ -146,6 +147,10 @@ describe('Utils → Pattern', () => {
assert.ok(!util.isDynamicPattern('{a' + ','.repeat(999999) + 'b'));
assert.ok(!util.isDynamicPattern('{1..'));
assert.ok(!util.isDynamicPattern('{1.' + '.'.repeat(999999) + '2'));
assert.ok(!util.isDynamicPattern('{2..10'));
assert.ok(!util.isDynamicPattern('{2..10.'));
assert.ok(!util.isDynamicPattern('{2..10..'));
assert.ok(!util.isDynamicPattern('{2..10..2'));
});
});

Expand Down

0 comments on commit d4c16e4

Please sign in to comment.