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
smock-0.1.263 node_modules/webpack/node_modules/watchpack/node_modules/chokidar/node_modules/readdirp/node_modules/minimatch/test/brace-expand.js
smock-0.1.262 node_modules/webpack/node_modules/watchpack/node_modules/chokidar/node_modules/readdirp/node_modules/minimatch/test/brace-expand.js
smock-0.1.261 node_modules/webpack/node_modules/watchpack/node_modules/chokidar/node_modules/readdirp/node_modules/minimatch/test/brace-expand.js
smock-0.1.260 node_modules/webpack/node_modules/watchpack/node_modules/chokidar/node_modules/readdirp/node_modules/minimatch/test/brace-expand.js
smock-0.1.259 node_modules/webpack/node_modules/watchpack/node_modules/chokidar/node_modules/readdirp/node_modules/minimatch/test/brace-expand.js
smock-0.1.258 node_modules/webpack/node_modules/watchpack/node_modules/chokidar/node_modules/readdirp/node_modules/minimatch/test/brace-expand.js
smock-0.1.256 node_modules/webpack/node_modules/watchpack/node_modules/chokidar/node_modules/readdirp/node_modules/minimatch/test/brace-expand.js
smock-0.1.255 node_modules/webpack/node_modules/watchpack/node_modules/chokidar/node_modules/readdirp/node_modules/minimatch/test/brace-expand.js
smock-0.1.254 node_modules/webpack/node_modules/watchpack/node_modules/chokidar/node_modules/readdirp/node_modules/minimatch/test/brace-expand.js
smock-0.1.253 node_modules/webpack/node_modules/watchpack/node_modules/chokidar/node_modules/readdirp/node_modules/minimatch/test/brace-expand.js
smock-0.1.252 node_modules/webpack/node_modules/watchpack/node_modules/chokidar/node_modules/readdirp/node_modules/minimatch/test/brace-expand.js
smock-0.1.251 node_modules/webpack/node_modules/watchpack/node_modules/chokidar/node_modules/readdirp/node_modules/minimatch/test/brace-expand.js
smock-0.1.250 node_modules/webpack/node_modules/watchpack/node_modules/chokidar/node_modules/readdirp/node_modules/minimatch/test/brace-expand.js
smock-0.1.249 node_modules/webpack/node_modules/watchpack/node_modules/chokidar/node_modules/readdirp/node_modules/minimatch/test/brace-expand.js
entangled-0.0.16 spec/dummy/public/node_modules/karma/node_modules/minimatch/test/brace-expand.js
entangled-0.0.16 spec/dummy/public/node_modules/karma/node_modules/glob/node_modules/minimatch/test/brace-expand.js
entangled-0.0.16 spec/dummy/public/node_modules/grunt-cli/node_modules/findup-sync/node_modules/glob/node_modules/minimatch/test/brace-expand.js
entangled-0.0.16 spec/dummy/public/node_modules/grunt/node_modules/findup-sync/node_modules/glob/node_modules/minimatch/test/brace-expand.js
entangled-0.0.16 spec/dummy/public/node_modules/grunt/node_modules/minimatch/test/brace-expand.js
entangled-0.0.15 spec/dummy/public/node_modules/grunt-cli/node_modules/findup-sync/node_modules/glob/node_modules/minimatch/test/brace-expand.js