/[eiffelstudio]/branches/eth/eve/Src/contrib/library/text/parser/uri_template/tests/test_uri_template_matcher.e
ViewVC logotype

Diff of /branches/eth/eve/Src/contrib/library/text/parser/uri_template/tests/test_uri_template_matcher.e

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 94982 by jasonw, Fri Jun 7 15:28:53 2013 UTC revision 94983 by jasonw, Fri May 2 11:05:28 2014 UTC
# Line 15  inherit Line 15  inherit
15    
16  feature -- Matcher  feature -- Matcher
17    
18          test_uri_template_matcher          test_uri_template_matcher_01
19                  note                  note
20                          testing:  "uri-template"                          testing:  "uri-template"
21                  local                  local
# Line 80  feature -- Matcher Line 80  feature -- Matcher
80    
81                  end                  end
82    
83            test_uri_template_matcher_02
84                    note
85                            testing:  "uri-template"
86                    local
87                            tpl: URI_TEMPLATE
88                    do
89                            create tpl.make ("/test/{vars}")
90                            uri_template_match (tpl, "/test/foo%%2Fbar", <<["vars", "foo%%2Fbar"]>>, <<>>)
91    
92                            create tpl.make ("/test{/vars}")
93                            uri_template_match (tpl, "/test/foo%%2Fbar/abc%%2Fdef", <<["vars", "/foo%%2Fbar/abc%%2Fdef"], ["vars[1]", "foo%%2Fbar"], ["vars[2]", "abc%%2Fdef"]>>, <<>>)
94                    end
95    
96  feature {NONE} -- Implementations                feature {NONE} -- Implementations              
97    
98          uri_template_mismatch (a_uri_template: URI_TEMPLATE; a_uri: STRING)          uri_template_mismatch (a_uri_template: URI_TEMPLATE; a_uri: STRING)

Legend:
Removed from v.94982  
changed lines
  Added in v.94983

  ViewVC Help
Powered by ViewVC 1.1.23