| Index: utils/tests/pub/path/path_windows_test.dart
|
| diff --git a/utils/tests/pub/path/path_windows_test.dart b/utils/tests/pub/path/path_windows_test.dart
|
| index 1861a675b981ccdf723b6bea0b375bf6db159b96..b8dae382aa04e4551ad8059191d77544408178cb 100644
|
| --- a/utils/tests/pub/path/path_windows_test.dart
|
| +++ b/utils/tests/pub/path/path_windows_test.dart
|
| @@ -291,6 +291,30 @@ main() {
|
| });
|
| });
|
|
|
| + group('split', () {
|
| + test('splits out directories', () {
|
| + expect(builder.split(''), []);
|
| + expect(builder.split('a'), ['a']);
|
| + expect(builder.split(r'a\b/c.txt'), ['a', 'b', 'c.txt']);
|
| + });
|
| +
|
| + test('does not normalize', () {
|
| + expect(builder.split('.'), ['.']);
|
| + expect(builder.split('..'), ['..']);
|
| + expect(builder.split(r'a\b/..\c/.\d'), ['a', 'b', '..', 'c', '.', 'd']);
|
| + });
|
| +
|
| + test('collapses empty parts', () {
|
| + expect(builder.split(r'a\\b\\\c'), ['a', 'b', 'c']);
|
| + });
|
| +
|
| + test('includes the root prefix in the first part', () {
|
| + expect(builder.split(r'C:/a'), ['C:/a']);
|
| + expect(builder.split(r'C:\a\b\c'), [r'C:\a', 'b', 'c']);
|
| + // TODO(rnystrom): Test UNC paths.
|
| + });
|
| + });
|
| +
|
| test('withoutExtension', () {
|
| expect(builder.withoutExtension(''), '');
|
| expect(builder.withoutExtension('a'), 'a');
|
|
|