fixed cross-platform support

This commit is contained in:
Zachary Folwick 2015-12-28 15:59:55 -08:00
parent b54a0547b5
commit 1a2b29b4d1

View File

@ -1,9 +1,9 @@
Describe "Compare-Object" {
$testDirectory = $env:HOME + "testDirectory"
$nl = [Environment]::NewLine
$slash = [Environment]::DirectorySeparatorChar
$slash = [System.IO.Path]::DirectorySeparatorChar
$testDirectory = $HOME + $slash + "testDirectory"
$dir = $testDirectory
New-Item $testDirectory -ItemType directory -Force
$content1 = "line 1" + $nl + "line 2"