1 var Glob = require("../glob.js").Glob
2 var test = require('tap').test
4 test('globstar should not have dupe matches', function(t) {
5 var pattern = 'a/**/[gh]'
6 var g = new Glob(pattern, { cwd: __dirname })
8 g.on('match', function(m) {
9 console.error('match %j', m)
12 g.on('end', function(set) {
13 console.error('set', set)
14 matches = matches.sort()
16 t.same(matches, set, 'should have same set of matches')