diff --git a/library/text/parser/uri_template/tests/test_uri_template_matcher.e b/library/text/parser/uri_template/tests/test_uri_template_matcher.e index e0caf791..87604661 100644 --- a/library/text/parser/uri_template/tests/test_uri_template_matcher.e +++ b/library/text/parser/uri_template/tests/test_uri_template_matcher.e @@ -15,7 +15,7 @@ inherit feature -- Matcher - test_uri_template_matcher + test_uri_template_matcher_01 note testing: "uri-template" local @@ -80,6 +80,19 @@ feature -- Matcher end + test_uri_template_matcher_02 + note + testing: "uri-template" + local + tpl: URI_TEMPLATE + do + create tpl.make ("/test/{vars}") + uri_template_match (tpl, "/test/foo%%2Fbar", <<["vars", "foo%%2Fbar"]>>, <<>>) + + create tpl.make ("/test{/vars}") + uri_template_match (tpl, "/test/foo%%2Fbar/abc%%2Fdef", <<["vars", "/foo%%2Fbar/abc%%2Fdef"], ["vars[1]", "foo%%2Fbar"], ["vars[2]", "abc%%2Fdef"]>>, <<>>) + end + feature {NONE} -- Implementations uri_template_mismatch (a_uri_template: URI_TEMPLATE; a_uri: STRING)