Permalink
Browse files

more failing tests related to #688

  • Loading branch information...
1 parent 52033e5 commit 62639dba3d4345f5cb96d30351d050de7eaf27e4 @rkh rkh committed Mar 20, 2013
Showing with 5 additions and 0 deletions.
  1. +5 −0 test/compile_test.rb
View
5 test/compile_test.rb
@@ -150,6 +150,11 @@ def compiled pattern
parses '/10.1/:id', '/10.1/test', "id" => "test"
parses '/10.1/:id', '/10.1/te.st', "id" => "te.st"
+ parses '/:a/:b.?:c?', '/a/b', "a" => "a", "b" => "b", "c" => nil
+ parses '/:a/:b.?:c?', '/a/b.c', "a" => "a", "b" => "b", "c" => "c"
+ parses '/:a/:b.?:c?', '/a.b/c', "a" => "a.b", "b" => "c", "c" => nil
+ parses '/:a/:b.?:c?', '/a.b/c.d', "a" => "a.b", "b" => "c", "c" => "d"
+
parses "/:file.:ext", "/pony%2ejpg", "file" => "pony", "ext" => "jpg"
parses "/:file.:ext", "/pony%E6%AD%A3%2Ejpg", "file" => "pony%E6%AD%A3", "ext" => "jpg"
parses "/:file.:ext", "/pony%e6%ad%a3%2ejpg", "file" => "pony%e6%ad%a3", "ext" => "jpg"

1 comment on commit 62639db

@rkh
Sinatra member

Note: not all of these are failing, only the last two.

Please sign in to comment.