Skip to content
Browse files

add failing test for #688

  • Loading branch information...
1 parent 07c58e0 commit b08af687c3e75178ea86a05a5de524593905946e @rkh rkh committed Mar 20, 2013
Showing with 3 additions and 0 deletions.
  1. +3 −0 test/compile_test.rb
View
3 test/compile_test.rb
@@ -144,6 +144,9 @@ def compiled pattern
parses "/:id/test.bar", "/2e/test.bar", {"id" => "2e"}
fails "/:id/test.bar", "/%2E/test.bar"
+ parses '/10.1/:id', '/10.1/test', "id" => "test"
+ parses '/10.1/:id', '/10.1/te.st', "id" => "te.st"
+
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"

0 comments on commit b08af68

Please sign in to comment.
Something went wrong with that request. Please try again.