don't test with null paths

This commit is contained in:
Joey Hess 2015-04-14 15:15:29 -04:00
parent 277e103880
commit cd31b69ff6

View file

@ -159,6 +159,7 @@ relPathDirToFileAbs from to
prop_relPathDirToFile_basics :: FilePath -> FilePath -> Bool
prop_relPathDirToFile_basics from to
| null from || null to = True
| from == to = null r
| otherwise = not (null r)
where