OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 lock_file_test; | 5 library lock_file_test; |
6 | 6 |
| 7 import 'package:pub/src/ascii_tree.dart' as tree; |
| 8 import 'package:pub/src/utils.dart'; |
7 import 'package:unittest/unittest.dart'; | 9 import 'package:unittest/unittest.dart'; |
8 | 10 |
9 import '../lib/src/ascii_tree.dart' as tree; | |
10 import '../lib/src/utils.dart'; | |
11 | |
12 main() { | 11 main() { |
13 runningAsTest = true; | 12 runningAsTest = true; |
14 | 13 |
15 group('tree.fromFiles', () { | 14 group('tree.fromFiles', () { |
16 test('no files', () { | 15 test('no files', () { |
17 expect(tree.fromFiles([]), equals("")); | 16 expect(tree.fromFiles([]), equals("")); |
18 }); | 17 }); |
19 | 18 |
20 test('up to ten files in one directory are shown', () { | 19 test('up to ten files in one directory are shown', () { |
21 var files = [ | 20 var files = [ |
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
239 |-- g.dart | 238 |-- g.dart |
240 |-- h.dart | 239 |-- h.dart |
241 |-- i.dart | 240 |-- i.dart |
242 |-- j.dart | 241 |-- j.dart |
243 |-- k.dart | 242 |-- k.dart |
244 '-- l.dart | 243 '-- l.dart |
245 """)); | 244 """)); |
246 }); | 245 }); |
247 | 246 |
248 } | 247 } |
OLD | NEW |