Skip to content

Commit 71b69f3

Browse files
author
Daniel Mueller
committed
UtilsSpecs: Unit test corrected
- Use Path.Combine instead of +Path.DirectorySeparatorChar.ToString()+ - Fixes error if HOMEPATH=\ (Root directory, result was 'H:\\' or '//data' on Unix)
1 parent 9289b97 commit 71b69f3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎tests/Paket.Tests/UtilsSpecs.fs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ let ``createRelativePath should handle spaces``() =
1515
let ``normalize path with home directory``() =
1616
"~/data"
1717
|> Utils.normalizeLocalPath
18-
|> shouldEqual (AbsolutePath (GetHomeDirectory() + Path.DirectorySeparatorChar.ToString() + "data"))
18+
|> shouldEqual (AbsolutePath (Path.Combine(GetHomeDirectory(), "data")))
1919

2020
[<Test>]
2121
let ``relative local path is returned as is``() =

0 commit comments

Comments
 (0)