From dc5ed91831442848bbeade0cfa2dd8270d5ca7a7 Mon Sep 17 00:00:00 2001 From: Erik Hollensbe Date: Wed, 19 Jan 2022 13:23:05 -0800 Subject: [PATCH] small test for path params length when they are provided Signed-off-by: Erik Hollensbe --- src/path.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/path.rs b/src/path.rs index 161c4dc..5df1472 100644 --- a/src/path.rs +++ b/src/path.rs @@ -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");