From 0a0785716a226c7e1d4d80c922e11fb59d24ed39 Mon Sep 17 00:00:00 2001 From: Martin Geisler Date: Sat, 9 Sep 2023 16:59:25 +0200 Subject: [PATCH] Sharpen tests for `url_matches` --- src/html_root_url.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/html_root_url.rs b/src/html_root_url.rs index 3a884f2..fac390e 100644 --- a/src/html_root_url.rs +++ b/src/html_root_url.rs @@ -170,13 +170,13 @@ mod test_url_matches { #[test] fn without_patch() { let ver = Version::parse("1.2.3").unwrap(); - assert_eq!(url_matches("https://docs.rs/foo/1.2", "foo", &ver), Ok(())); + assert_eq!(url_matches("https://docs.rs/foo/1.2/", "foo", &ver), Ok(())); } #[test] fn without_minor() { let ver = Version::parse("1.2.3").unwrap(); - assert_eq!(url_matches("https://docs.rs/foo/1", "foo", &ver), Ok(())); + assert_eq!(url_matches("https://docs.rs/foo/1/", "foo", &ver), Ok(())); } #[test]