Fixing non-windows byte-encoding verification failure

This commit is contained in:
Bryce Milton committed 2016-04-21 12:28:36 -07:00
1 parent f6e0eee5d1
commit abaa636f3a
1 file changed
+4 -2
+4 -2
View File
@@ -132,8 +132,10 @@ Describe "Get-Content" {
$result=get-content -path $testPath -encoding:Byte -tail 10
$result.Length | Should Be 10
$expected = "52","44","87","111","114","108","100","52","13","10"
for ($i = 0; $i -lt $result.Length ; $i++) { $result[$i] | Should BeExactly $expected[$i]}
if ($IsWindows) {
$expected = "52","44","87","111","114","108","100","52","13","10"
for ($i = 0; $i -lt $result.Length ; $i++) { $result[$i] | Should BeExactly $expected[$i]}
}
}
It "should get-content that matches the input string"{
#[DRT][BugId(BugDatabase.WindowsOutOfBandReleases, 905829)]