diff --git a/src/lib.rs b/src/lib.rs index 3dd1f1f..7321823 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -32,8 +32,8 @@ use crate::error::DirectivePathParseError; use crate::error::RobotParseError; use crate::error::UserAgentParseError; -#[doc(hidden)] mod readme { + #![doc(hidden)] #![doc = include_str!("../README.md")] } @@ -579,6 +579,9 @@ mod test { let path = "/foo/bar".parse::().unwrap(); assert!(path.matches("/foo/bar/baz")); assert!(!path.matches("/foo")); + assert!(!path.matches("/foo/b")); + assert!(!path.matches("/foo/barley")); + assert!(path.matches("/foo/bar/")); let path = DirectivePath::ANY; assert!(path.matches("/foo/bar/baz"));