summaryrefslogtreecommitdiff
path: root/deps/npm/node_modules/node-gyp/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/nested.js
blob: 0862dc51f90aeecdf9fad761b738683bc027c5a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
var test = require('tape');
var expand = require('..');

test('nested', function(t) {
  t.deepEqual(expand('{a,b{1..3},c}'), [
    'a', 'b1', 'b2', 'b3', 'c'
  ]);
  t.deepEqual(expand('{{A..Z},{a..z}}'),
    'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'.split('')
  );
  t.deepEqual(expand('ppp{,config,oe{,conf}}'), [
    'ppp', 'pppconfig', 'pppoe', 'pppoeconf'
  ]);
  t.end();
});