small test for path params length when they are provided

Signed-off-by: Erik Hollensbe <linux@hollensbe.org>
This commit is contained in:
Erik Hollensbe
2022-01-19 13:23:05 -08:00
parent 33d27534f1
commit dc5ed91831
+1
View File
@@ -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");