OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 import 'package:scheduled_test/descriptor.dart' as d; | 5 import 'package:scheduled_test/descriptor.dart' as d; |
6 import 'package:scheduled_test/scheduled_test.dart'; | 6 import 'package:scheduled_test/scheduled_test.dart'; |
7 | 7 |
8 import 'package:metatest/metatest.dart'; | |
9 import 'utils.dart'; | 8 import 'utils.dart'; |
10 | 9 |
11 String sandbox; | 10 String sandbox; |
12 | 11 |
13 void main() { | 12 void main() { |
14 expectTestPasses("pattern().validate() succeeds if there's a file matching " | 13 expectTestPasses("pattern().validate() succeeds if there's a file matching " |
15 "the pattern and the child entry", () { | 14 "the pattern and the child entry", () { |
16 scheduleSandbox(); | 15 scheduleSandbox(); |
17 | 16 |
18 d.file('foo', 'blap').create(); | 17 d.file('foo', 'blap').create(); |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 d.filePattern(new RegExp(r'f..'), 'bar').validate(); | 103 d.filePattern(new RegExp(r'f..'), 'bar').validate(); |
105 }, (error) { | 104 }, (error) { |
106 expect(error.toString(), matches( | 105 expect(error.toString(), matches( |
107 r"^Multiple valid entries found in '[^']+' matching " | 106 r"^Multiple valid entries found in '[^']+' matching " |
108 r"\/f\.\./:\n" | 107 r"\/f\.\./:\n" |
109 r"\* faa\n" | 108 r"\* faa\n" |
110 r"\* fee\n" | 109 r"\* fee\n" |
111 r"\* foo$")); | 110 r"\* foo$")); |
112 }); | 111 }); |
113 } | 112 } |
OLD | NEW |