From a7372372f6c3b81804c2b83f2a0e9c0bc7d08e13 Mon Sep 17 00:00:00 2001 From: Zanie Blue Date: Tue, 2 Jul 2024 19:50:39 -0500 Subject: [PATCH] Add test case demonstrating equality of paths "foo/bar" and "foobar" --- library/std/src/path/tests.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/library/std/src/path/tests.rs b/library/std/src/path/tests.rs index 92702b395df..53a65c60b58 100644 --- a/library/std/src/path/tests.rs +++ b/library/std/src/path/tests.rs @@ -1566,6 +1566,13 @@ macro_rules! tc ( relative_from: Some("bar") ); + tc!("foo/bar", "foobar", + eq: false, + starts_with: false, + ends_with: false, + relative_from: None + ); + tc!("foo/bar/baz", "foo/bar", eq: false, starts_with: true,