Sha256: 180de672242013a75c172b3ca03e7bcbbaa5c4972ddcff8ccd7a0800b601cdd8

Contents?: true

Size: 647 Bytes

Versions: 205

Compression:

Stored size: 647 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"] ]
  ].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

205 entries across 146 versions & 13 rubygems

Version Path
blackboard-3.1.9 lib/site_template/node_modules/node-sass/node_modules/minimatch/test/brace-expand.js
blackboard-3.1.9 lib/site_template/node_modules/node-sass/node_modules/globule/node_modules/glob/node_modules/minimatch/test/brace-expand.js
exercism-analysis-0.1.1 vendor/javascript/node_modules/jshint/node_modules/minimatch/test/brace-expand.js
es6_tilt-0.1.2 test/dummy/app/assets/javascripts/node_modules/fsevents/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/fstream-ignore/node_modules/minimatch/test/brace-expand.js
es6_tilt-0.1.1 test/dummy/app/assets/javascripts/node_modules/fsevents/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/fstream-ignore/node_modules/minimatch/test/brace-expand.js
es6_tilt-0.1.0 test/dummy/app/assets/javascripts/node_modules/fsevents/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/fstream-ignore/node_modules/minimatch/test/brace-expand.js
hooch-0.4.2 jasmine/node_modules/karma/node_modules/glob/node_modules/minimatch/test/brace-expand.js
hooch-0.4.2 jasmine/node_modules/karma/node_modules/minimatch/test/brace-expand.js
hooch-0.4.1 jasmine/node_modules/karma/node_modules/glob/node_modules/minimatch/test/brace-expand.js
hooch-0.4.1 jasmine/node_modules/karma/node_modules/minimatch/test/brace-expand.js
hooch-0.4.0 jasmine/node_modules/karma/node_modules/minimatch/test/brace-expand.js
hooch-0.4.0 jasmine/node_modules/karma/node_modules/glob/node_modules/minimatch/test/brace-expand.js
gulp_assets-1.0.0.pre.5 template/node_modules/webpack/node_modules/watchpack/node_modules/chokidar/node_modules/readdirp/node_modules/minimatch/test/brace-expand.js
gulp_assets-1.0.0.pre.5 template/node_modules/gulp/node_modules/vinyl-fs/node_modules/glob-watcher/node_modules/gaze/node_modules/globule/node_modules/minimatch/test/brace-expand.js
gulp_assets-1.0.0.pre.5 template/node_modules/gulp-sass/node_modules/node-sass/node_modules/gaze/node_modules/globule/node_modules/minimatch/test/brace-expand.js
gulp_assets-1.0.0.pre.4 template/node_modules/gulp/node_modules/vinyl-fs/node_modules/glob-watcher/node_modules/gaze/node_modules/globule/node_modules/minimatch/test/brace-expand.js
gulp_assets-1.0.0.pre.4 template/node_modules/gulp-sass/node_modules/node-sass/node_modules/gaze/node_modules/globule/node_modules/minimatch/test/brace-expand.js
gulp_assets-1.0.0.pre.4 template/node_modules/webpack/node_modules/watchpack/node_modules/chokidar/node_modules/readdirp/node_modules/minimatch/test/brace-expand.js
gulp_assets-1.0.0.pre.3 template/node_modules/webpack/node_modules/watchpack/node_modules/chokidar/node_modules/readdirp/node_modules/minimatch/test/brace-expand.js
gulp_assets-1.0.0.pre.3 template/node_modules/gulp/node_modules/vinyl-fs/node_modules/glob-watcher/node_modules/gaze/node_modules/globule/node_modules/minimatch/test/brace-expand.js