| Index: third_party/pkg/route_hierarchical/test/url_template_test.dart
|
| diff --git a/third_party/pkg/route_hierarchical/test/url_template_test.dart b/third_party/pkg/route_hierarchical/test/url_template_test.dart
|
| index 37d1cd4bb29f1b01a279d6f7d0dc6ba744b2768b..d98d9889716eea33bcabe019895c124f29101290 100644
|
| --- a/third_party/pkg/route_hierarchical/test/url_template_test.dart
|
| +++ b/third_party/pkg/route_hierarchical/test/url_template_test.dart
|
| @@ -59,6 +59,12 @@ main() {
|
| new UrlMatch(r'/foo', '/foo/bar', {}));
|
| });
|
|
|
| + test('should match without leading slashes', () {
|
| + var tmpl = new UrlTemplate(r'foo');
|
| + expect(tmpl.match(r'foo'),
|
| + new UrlMatch(r'foo', '', {}));
|
| + });
|
| +
|
| test('should reverse', () {
|
| var tmpl = new UrlTemplate('/:a/:b/:c');
|
| expect(tmpl.reverse(), '/null/null/null');
|
|
|