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
ela-4.1.6 node_modules/minimatch/test/brace-expand.js
ela-4.1.5 node_modules/minimatch/test/brace-expand.js
ela-4.1.4 node_modules/minimatch/test/brace-expand.js
ela-4.1.3 node_modules/minimatch/test/brace-expand.js
ela-4.1.2 node_modules/minimatch/test/brace-expand.js
ela-4.1.1 node_modules/minimatch/test/brace-expand.js
ela-4.1.0 node_modules/minimatch/test/brace-expand.js
ela-4.0.0 node_modules/minimatch/test/brace-expand.js
ela-3.4.3 node_modules/minimatch/test/brace-expand.js
ela-3.4.2 node_modules/minimatch/test/brace-expand.js
ela-3.4.0 node_modules/minimatch/test/brace-expand.js
ela-3.3.1 node_modules/minimatch/test/brace-expand.js
ela-3.3.0 node_modules/minimatch/test/brace-expand.js
ela-3.2.0 node_modules/minimatch/test/brace-expand.js
ela-3.1.1 node_modules/minimatch/test/brace-expand.js
ela-3.1.0 node_modules/minimatch/test/brace-expand.js
ela-3.0.0 node_modules/minimatch/test/brace-expand.js
ela-2.0.0 node_modules/minimatch/test/brace-expand.js
ela-1.1.0 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