mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 20:56:02 +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.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)]
|
||||
|
||||
Reference in new issue
Block a user