Skip to content

Commit

Permalink
Add test case demonstrating equality of paths "foo/bar" and "foobar"
Browse files Browse the repository at this point in the history
  • Loading branch information
zanieb authored and the8472 committed Jul 3, 2024
1 parent 1cfd47f commit a737237
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions library/std/src/path/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit a737237

Please sign in to comment.