Index: pkg/path/test/posix_test.dart |
diff --git a/pkg/path/test/posix_test.dart b/pkg/path/test/posix_test.dart |
index 3afb3bb88d67e3cd35d498df41519cb0bc7e8986..2801eadec2ff10c7f24158c56952f824f9f68b50 100644 |
--- a/pkg/path/test/posix_test.dart |
+++ b/pkg/path/test/posix_test.dart |
@@ -462,6 +462,8 @@ main() { |
expect(builder.fromUri(Uri.parse('///path/to/foo')), '/path/to/foo'); |
expect(builder.fromUri(Uri.parse('file:///path/to/foo%23bar')), |
'/path/to/foo#bar'); |
+ expect(builder.fromUri(Uri.parse('_%7B_%7D_%60_%5E_%20_%22_%25_')), |
+ r'_{_}_`_^_ _"_%_'); |
expect(() => builder.fromUri(Uri.parse('http://dartlang.org')), |
throwsArgumentError); |
}); |
@@ -473,5 +475,9 @@ main() { |
expect(builder.toUri('foo/bar'), Uri.parse('foo/bar')); |
expect(builder.toUri('/path/to/foo#bar'), |
Uri.parse('file:///path/to/foo%23bar')); |
+ expect(builder.toUri(r'/_{_}_`_^_ _"_%_'), |
+ Uri.parse('file:///_%7B_%7D_%60_%5E_%20_%22_%25_')); |
+ expect(builder.toUri(r'_{_}_`_^_ _"_%_'), |
+ Uri.parse('_%7B_%7D_%60_%5E_%20_%22_%25_')); |
}); |
} |