Welcome to mirror list, hosted at ThFree Co, Russian Federation.

nested.js « test « brace-expansion « node_modules - github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
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();
});