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:
Joey Hess 2021-01-13 13:21:15 -04:00
parent 6c8205a113
commit 99ba471209
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
4 changed files with 21 additions and 11 deletions

View file

@ -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