From 33bc557dd48c4693329a0403d5b3f224999b029d 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" --- std/src/path/tests.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/std/src/path/tests.rs b/std/src/path/tests.rs index 92702b395dfe1..53a65c60b580c 100644 --- a/std/src/path/tests.rs +++ b/std/src/path/tests.rs @@ -1566,6 +1566,13 @@ pub fn test_compare() { 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,