Index: pkg/path/test/windows_test.dart |
diff --git a/pkg/path/test/windows_test.dart b/pkg/path/test/windows_test.dart |
index 7b3cf6004783fbb5c386e960084b831ab9613160..74094397461b7ab0cb859318cd8557d20782ea1a 100644 |
--- a/pkg/path/test/windows_test.dart |
+++ b/pkg/path/test/windows_test.dart |
@@ -172,6 +172,14 @@ main() { |
expect(builder.join('a', 'b', 'c', null, null), equals(r'a\b\c')); |
}); |
+ test('ignores empty strings', () { |
+ expect(builder.join(''), ''); |
+ expect(builder.join('', ''), ''); |
+ expect(builder.join('', 'a'), 'a'); |
+ expect(builder.join('a', '', 'b', '', '', '', 'c'), r'a\b\c'); |
+ expect(builder.join('a', 'b', ''), r'a\b'); |
+ }); |
+ |
test('disallows intermediate nulls', () { |
expect(() => builder.join('a', null, 'b'), throwsArgumentError); |
expect(() => builder.join(null, 'a'), throwsArgumentError); |