mirror of
https://github.com/bootandy/dust.git
synced 2026-06-08 11:29:05 +03:00
Tests ~ add test case to 'Fix ~ improve portability of path manipulation'
This commit is contained in:
@@ -310,6 +310,7 @@ mod tests {
|
|||||||
assert!(!is_a_parent_of("/usr/", "/usr"));
|
assert!(!is_a_parent_of("/usr/", "/usr"));
|
||||||
assert!(!is_a_parent_of("/usr/andy", "/usr"));
|
assert!(!is_a_parent_of("/usr/andy", "/usr"));
|
||||||
assert!(!is_a_parent_of("/usr/andy", "/usr/sibling"));
|
assert!(!is_a_parent_of("/usr/andy", "/usr/sibling"));
|
||||||
|
assert!(!is_a_parent_of("/usr/folder", "/usr/folder_not_a_child"));
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|||||||
Reference in New Issue
Block a user