Content-Length: 325984 | pFad | https://github.com/model-checking/verify-rust-std/commit/5ca124f6d8a71e886937ad8b3ceea304707ab65c

58 Add more test cases for path comparisons · model-checking/verify-rust-std@5ca124f · GitHub
Skip to content

Commit 5ca124f

Browse files
zaniebthe8472
authored andcommitted
Add more test cases for path comparisons
1 parent 33bc557 commit 5ca124f

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

std/src/path/tests.rs

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1545,6 +1545,20 @@ pub fn test_compare() {
15451545
relative_from: Some("")
15461546
);
15471547

1548+
tc!("foo//", "foo",
1549+
eq: true,
1550+
starts_with: true,
1551+
ends_with: true,
1552+
relative_from: Some("")
1553+
);
1554+
1555+
tc!("foo//github.com/", "foo",
1556+
eq: true,
1557+
starts_with: true,
1558+
ends_with: true,
1559+
relative_from: Some("")
1560+
);
1561+
15481562
tc!("foo/.", "foo",
15491563
eq: true,
15501564
starts_with: true,
@@ -1559,6 +1573,20 @@ pub fn test_compare() {
15591573
relative_from: Some("")
15601574
);
15611575

1576+
tc!("foo/.//bar", "foo/bar",
1577+
eq: true,
1578+
starts_with: true,
1579+
ends_with: true,
1580+
relative_from: Some("")
1581+
);
1582+
1583+
tc!("foo//./bar", "foo/bar",
1584+
eq: true,
1585+
starts_with: true,
1586+
ends_with: true,
1587+
relative_from: Some("")
1588+
);
1589+
15621590
tc!("foo/bar", "foo",
15631591
eq: false,
15641592
starts_with: true,

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/model-checking/verify-rust-std/commit/5ca124f6d8a71e886937ad8b3ceea304707ab65c

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy