| Index: pkg/path/test/path_posix_test.dart
|
| diff --git a/pkg/path/test/path_posix_test.dart b/pkg/path/test/path_posix_test.dart
|
| index e1c39421dd7adcfd5919e2819ca2f71cb5f6b824..763035fe09b1616936f4ec385ea088cf10288d8c 100644
|
| --- a/pkg/path/test/path_posix_test.dart
|
| +++ b/pkg/path/test/path_posix_test.dart
|
| @@ -161,6 +161,25 @@ main() {
|
| });
|
| });
|
|
|
| + group('joinAll', () {
|
| + test('allows more than eight parts', () {
|
| + expect(builder.joinAll(['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i']),
|
| + 'a/b/c/d/e/f/g/h/i');
|
| + });
|
| +
|
| + test('does not add separator if a part ends in one', () {
|
| + expect(builder.joinAll(['a/', 'b', 'c/', 'd']), 'a/b/c/d');
|
| + expect(builder.joinAll(['a\\', 'b']), r'a\/b');
|
| + });
|
| +
|
| + test('ignores parts before an absolute path', () {
|
| + expect(builder.joinAll(['a', '/', 'b', 'c']), '/b/c');
|
| + expect(builder.joinAll(['a', '/b', '/c', 'd']), '/c/d');
|
| + expect(builder.joinAll(['a', r'c:\b', 'c', 'd']), r'a/c:\b/c/d');
|
| + expect(builder.joinAll(['a', r'\\b', 'c', 'd']), r'a/\\b/c/d');
|
| + });
|
| + });
|
| +
|
| group('split', () {
|
| test('simple cases', () {
|
| expect(builder.split(''), []);
|
|
|