mirror of
https://github.com/zerotier/ratpack.git
synced 2026-05-22 16:27:23 -07:00
small test for path params length when they are provided
Signed-off-by: Erik Hollensbe <linux@hollensbe.org>
This commit is contained in:
@@ -176,6 +176,7 @@ mod tests {
|
||||
assert!(path.matches("/abc/wooble/wakka/jkl"));
|
||||
assert!(!path.matches("/nope/ghi/def/jkl"));
|
||||
assert!(!path.matches("/abc/ghi/def/nope"));
|
||||
assert_eq!(path.params().len(), 2);
|
||||
|
||||
let mut bt = BTreeMap::new();
|
||||
bt.insert("def", "wooble");
|
||||
|
||||
Reference in New Issue
Block a user