提交 f7494b20 编写于 作者: B Benjamin Pasero

add tests for #6936

上级 1dfc347c
......@@ -210,6 +210,19 @@ suite('Glob', () => {
assert(!glob.match(p, '/some.js/test'));
assert(!glob.match(p, '\\some.js\\test'));
p = '**/project.json';
assert(glob.match(p, 'project.json'));
assert(glob.match(p, '/project.json'));
assert(glob.match(p, 'some/folder/project.json'));
assert(!glob.match(p, 'some/folder/file_project.json'));
assert(!glob.match(p, 'some/folder/fileproject.json'));
assert(!glob.match(p, '/rrproject.json'));
assert(!glob.match(p, 'some/rrproject.json'));
assert(!glob.match(p, 'rrproject.json'));
assert(!glob.match(p, '\\rrproject.json'));
assert(!glob.match(p, 'some\\rrproject.json'));
p = 'test/**';
assert(glob.match(p, 'test'));
assert(glob.match(p, 'test/foo.js'));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册