mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 04:36:39 +00:00
Fixing non-windows byte-encoding verification failure
This commit is contained in:
1 parent
f6e0eee5d1
commit
abaa636f3a
1 file changed
+4
-2
@@ -132,8 +132,10 @@ Describe "Get-Content" {
|
|||||||
|
|
||||||
$result=get-content -path $testPath -encoding:Byte -tail 10
|
$result=get-content -path $testPath -encoding:Byte -tail 10
|
||||||
$result.Length | Should Be 10
|
$result.Length | Should Be 10
|
||||||
$expected = "52","44","87","111","114","108","100","52","13","10"
|
if ($IsWindows) {
|
||||||
for ($i = 0; $i -lt $result.Length ; $i++) { $result[$i] | Should BeExactly $expected[$i]}
|
$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"{
|
It "should get-content that matches the input string"{
|
||||||
#[DRT][BugId(BugDatabase.WindowsOutOfBandReleases, 905829)]
|
#[DRT][BugId(BugDatabase.WindowsOutOfBandReleases, 905829)]
|
||||||
|
|||||||
Reference in new issue
Block a user