rewrite prop_relPathDirToFileAbs_basics
This was not a good test, it broke the requirement that relPathDirToFileAbs take absolute paths. And it failed when the two input paths were eg, the same but differently normalized. Replaced with some tests of the real basics of that function.
This commit is contained in:
parent
6c8205a113
commit
99ba471209
4 changed files with 21 additions and 11 deletions
|
@ -189,8 +189,7 @@ splitShortExtensions' maxextension = go []
|
|||
(base, ext) = splitExtension f
|
||||
len = B.length ext
|
||||
|
||||
{- This requires the first path to be absolute, and the
|
||||
- second path cannot contain ../ or ./
|
||||
{- This requires both paths to be absolute and normalized.
|
||||
-
|
||||
- On Windows, if the paths are on different drives,
|
||||
- a relative path is not possible and the path is simply
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue