From 6c584792d81c91b8f7e391123869257124a1c641 Mon Sep 17 00:00:00 2001 From: Kristopher Wuollett Date: Fri, 28 Jul 2023 15:03:03 -0500 Subject: [PATCH] add sub-delim path tests (#34) excluded `*` since it is known to not be supported yet, see #23. --- tests/tree.rs | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/tests/tree.rs b/tests/tree.rs index 358b3a8..e50d112 100644 --- a/tests/tree.rs +++ b/tests/tree.rs @@ -27,6 +27,16 @@ match_tests! { "/doc/rust1.26.html", "/ʯ", "/β", + "/sd!here", + "/sd$here", + "/sd&here", + "/sd'here", + "/sd(here", + "/sd)here", + "/sd+here", + "/sd,here", + "/sd;here", + "/sd=here", ], "/a" :: "/a" => {}, "" :: "/" => None, @@ -38,7 +48,17 @@ match_tests! { "" :: "/no" => None, "/ab" :: "/ab" => {}, "/ʯ" :: "/ʯ" => {}, - "/β" :: "/β" => {} + "/β" :: "/β" => {}, + "/sd!here" :: "/sd!here" => {}, + "/sd$here" :: "/sd$here" => {}, + "/sd&here" :: "/sd&here" => {}, + "/sd'here" :: "/sd'here" => {}, + "/sd(here" :: "/sd(here" => {}, + "/sd)here" :: "/sd)here" => {}, + "/sd+here" :: "/sd+here" => {}, + "/sd,here" :: "/sd,here" => {}, + "/sd;here" :: "/sd;here" => {}, + "/sd=here" :: "/sd=here" => {}, }, wildcard { routes = [