Sha256: 82085908d860fb4708d3f96fae8130b1138d63301e5392f56d5579d4dbc9f218

Contents?: true

Size: 768 Bytes

Versions: 27

Compression:

Stored size: 768 Bytes

Contents

var tap = require("tap")
  , minimatch = require("../")

tap.test("brace expansion", function (t) {
  // [ pattern, [expanded] ]
  ; [ [ "a{b,c{d,e},{f,g}h}x{y,z}"
      , [ "abxy"
        , "abxz"
        , "acdxy"
        , "acdxz"
        , "acexy"
        , "acexz"
        , "afhxy"
        , "afhxz"
        , "aghxy"
        , "aghxz" ] ]
    , [ "a{1..5}b"
      , [ "a1b"
        , "a2b"
        , "a3b"
        , "a4b"
        , "a5b" ] ]
    , [ "a{b}c", ["a{b}c"] ]
    , [ "a{00..05}b"
      , ["a00b"
        ,"a01b"
        ,"a02b"
        ,"a03b"
        ,"a04b"
        ,"a05b" ] ]
  ].forEach(function (tc) {
    var p = tc[0]
      , expect = tc[1]
    t.equivalent(minimatch.braceExpand(p), expect, p)
  })
  console.error("ending")
  t.end()
})


Version data entries

27 entries across 16 versions & 5 rubygems

Version Path
blackboard-3.1.9 lib/site_template/node_modules/node-gyp/node_modules/minimatch/test/brace-expand.js
es6_tilt-0.1.2 test/dummy/app/assets/javascripts/node_modules/commoner/node_modules/minimatch/test/brace-expand.js
es6_tilt-0.1.1 test/dummy/app/assets/javascripts/node_modules/commoner/node_modules/minimatch/test/brace-expand.js
es6_tilt-0.1.0 test/dummy/app/assets/javascripts/node_modules/commoner/node_modules/minimatch/test/brace-expand.js
gulp_assets-1.0.0.pre.5 template/node_modules/babel-core/node_modules/regenerator/node_modules/commoner/node_modules/glob/node_modules/minimatch/test/brace-expand.js
gulp_assets-1.0.0.pre.4 template/node_modules/babel-core/node_modules/regenerator/node_modules/commoner/node_modules/glob/node_modules/minimatch/test/brace-expand.js
gulp_assets-1.0.0.pre.3 template/node_modules/babel-core/node_modules/regenerator/node_modules/commoner/node_modules/glob/node_modules/minimatch/test/brace-expand.js
entangled-0.0.16 spec/dummy/public/node_modules/karma/node_modules/chokidar/node_modules/anymatch/node_modules/minimatch/test/brace-expand.js
entangled-0.0.16 spec/dummy/public/node_modules/bower/node_modules/glob/node_modules/minimatch/test/brace-expand.js
entangled-0.0.15 spec/dummy/public/node_modules/karma/node_modules/chokidar/node_modules/anymatch/node_modules/minimatch/test/brace-expand.js
entangled-0.0.15 spec/dummy/public/node_modules/bower/node_modules/glob/node_modules/minimatch/test/brace-expand.js
entangled-0.0.14 spec/dummy/public/node_modules/bower/node_modules/glob/node_modules/minimatch/test/brace-expand.js
entangled-0.0.14 spec/dummy/public/node_modules/karma/node_modules/chokidar/node_modules/anymatch/node_modules/minimatch/test/brace-expand.js
entangled-0.0.13 spec/dummy/public/node_modules/karma/node_modules/chokidar/node_modules/anymatch/node_modules/minimatch/test/brace-expand.js
entangled-0.0.13 spec/dummy/public/node_modules/bower/node_modules/glob/node_modules/minimatch/test/brace-expand.js
entangled-0.0.12 spec/dummy/public/node_modules/karma/node_modules/chokidar/node_modules/anymatch/node_modules/minimatch/test/brace-expand.js
entangled-0.0.12 spec/dummy/public/node_modules/bower/node_modules/glob/node_modules/minimatch/test/brace-expand.js
entangled-0.0.11 spec/dummy/public/node_modules/karma/node_modules/chokidar/node_modules/anymatch/node_modules/minimatch/test/brace-expand.js
entangled-0.0.11 spec/dummy/public/node_modules/bower/node_modules/glob/node_modules/minimatch/test/brace-expand.js
entangled-0.0.10 spec/dummy/public/node_modules/bower/node_modules/glob/node_modules/minimatch/test/brace-expand.js