Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 33bc557

Browse files
zaniebthe8472
authored andcommittedJul 3, 2024
Add test case demonstrating equality of paths "foo/bar" and "foobar"
1 parent 5b0d82f commit 33bc557

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed
 

‎std/src/path/tests.rs

+7
Original file line numberDiff line numberDiff line change
@@ -1566,6 +1566,13 @@ pub fn test_compare() {
15661566
relative_from: Some("bar")
15671567
);
15681568

1569+
tc!("foo/bar", "foobar",
1570+
eq: false,
1571+
starts_with: false,
1572+
ends_with: false,
1573+
relative_from: None
1574+
);
1575+
15691576
tc!("foo/bar/baz", "foo/bar",
15701577
eq: false,
15711578
starts_with: true,

0 commit comments

Comments
 (0)
Failed to load comments.