about summary refs log tree commit diff
path: root/library/std
diff options
context:
space:
mode:
authorZanie Blue <contact@zanie.dev>2024-07-02 19:50:39 -0500
committerThe 8472 <git@infinite-source.de>2024-07-03 22:35:10 +0200
commita7372372f6c3b81804c2b83f2a0e9c0bc7d08e13 (patch)
treedd2edcc70a44fef70eb59875330d6b0c4f8543fc /library/std
parent1cfd47fe0b78f48a04ac8fce792a406b638da40b (diff)
downloadrust-a7372372f6c3b81804c2b83f2a0e9c0bc7d08e13.tar.gz
rust-a7372372f6c3b81804c2b83f2a0e9c0bc7d08e13.zip
Add test case demonstrating equality of paths "foo/bar" and "foobar"
Diffstat (limited to 'library/std')
-rw-r--r--library/std/src/path/tests.rs7
1 files changed, 7 insertions, 0 deletions
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 @@ 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,