Chromium Code Reviews| Index: pkg/glob/test/parse_test.dart |
| diff --git a/pkg/glob/test/parse_test.dart b/pkg/glob/test/parse_test.dart |
| index 5ea3f05a359a272599425d58de801879e0dd44f3..fcaa5b4645781f870aee9bb3aa347166ac46aea9 100644 |
| --- a/pkg/glob/test/parse_test.dart |
| +++ b/pkg/glob/test/parse_test.dart |
| @@ -3,11 +3,15 @@ |
| // BSD-style license that can be found in the LICENSE file. |
| import 'package:glob/glob.dart'; |
| +import 'package:path/path.dart' as p; |
| import 'package:unittest/unittest.dart'; |
| void main() { |
| test("supports backslash-escaped characters", () { |
| expect(r"\*[]{,}?()", contains(new Glob(r"\\\*\[\]\{\,\}\?\(\)"))); |
| + if (p.style != p.Style.windows) { |
| + expect(r"foo\bar", contains(new Glob(r"foo\\bar"))); |
| + } |
|
Bob Nystrom
2014/09/03 21:24:26
Can you add an expectation for what this should do
nweiz
2014/09/05 18:26:41
Done.
|
| }); |
| test("disallows an empty glob", () { |