| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 library test.analyzer.src.util.glob; | 5 library analyzer.test.src.util.glob_test; |
| 6 | 6 |
| 7 import 'package:analyzer/src/util/glob.dart'; | 7 import 'package:analyzer/src/util/glob.dart'; |
| 8 import 'package:unittest/unittest.dart'; | 8 import 'package:unittest/unittest.dart'; |
| 9 | 9 |
| 10 import '../../reflective_tests.dart'; | 10 import '../../reflective_tests.dart'; |
| 11 import '../../utils.dart'; | 11 import '../../utils.dart'; |
| 12 | 12 |
| 13 main() { | 13 main() { |
| 14 initializeTestEnvironment(); | 14 initializeTestEnvironment(); |
| 15 runReflectiveTests(GlobPosixTest); | 15 runReflectiveTests(GlobPosixTest); |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 void test_starStar() { | 124 void test_starStar() { |
| 125 Glob glob = new Glob(r'\', r'**.dart'); | 125 Glob glob = new Glob(r'\', r'**.dart'); |
| 126 expect(glob.matches(r'foo\bar.dart'), isTrue); | 126 expect(glob.matches(r'foo\bar.dart'), isTrue); |
| 127 expect(glob.matches(r'foo\bar\baz.dart'), isTrue); | 127 expect(glob.matches(r'foo\bar\baz.dart'), isTrue); |
| 128 expect(glob.matches(r'C:\foo\bar.dart'), isTrue); | 128 expect(glob.matches(r'C:\foo\bar.dart'), isTrue); |
| 129 expect(glob.matches(r'C:\foo\bar\baz.dart'), isTrue); | 129 expect(glob.matches(r'C:\foo\bar\baz.dart'), isTrue); |
| 130 // does not end with 'dart' | 130 // does not end with 'dart' |
| 131 expect(glob.matches(r'C:\web\foo.html'), isFalse); | 131 expect(glob.matches(r'C:\web\foo.html'), isFalse); |
| 132 } | 132 } |
| 133 } | 133 } |
| OLD | NEW |