There are several copies (some 3, and some 4) of identical tests in Measure-Object.Tests.ps1.
For example:
|
It "Measure-Object ScriptBlock properties should be able to transform input" { |
|
$map = @{ one = 1; two = 2; three = 3 } |
|
$result = "one", "two", "three" | Measure-Object -Sum {$map[$_]} |
|
$result.Sum | Should -Be 6 |
|
} |
|
It "Measure-Object ScriptBlock properties should be able to transform input" { |
|
$map = @{ one = 1; two = 2; three = 3 } |
|
$result = "one", "two", "three" | Measure-Object -Sum {$map[$_]} |
|
$result.Sum | Should -Be 6 |
|
} |
|
It "Measure-Object ScriptBlock properties should be able to transform input" { |
|
$map = @{ one = 1; two = 2; three = 3 } |
|
$result = "one", "two", "three" | Measure-Object -Sum {$map[$_]} |
|
$result.Sum | Should -Be 6 |
|
} |
|
It "Measure-Object ScriptBlock properties should be able to transform input" { |
|
$map = @{ one = 1; two = 2; three = 3 } |
|
$result = "one", "two", "three" | Measure-Object -Sum {$map[$_]} |
|
$result.Sum | Should -Be 6 |
|
} |
Do we need them?
There are several copies (some 3, and some 4) of identical tests in Measure-Object.Tests.ps1.
For example:
PowerShell/test/powershell/Modules/Microsoft.PowerShell.Utility/Measure-Object.Tests.ps1
Lines 377 to 381 in fde00de
PowerShell/test/powershell/Modules/Microsoft.PowerShell.Utility/Measure-Object.Tests.ps1
Lines 448 to 452 in fde00de
PowerShell/test/powershell/Modules/Microsoft.PowerShell.Utility/Measure-Object.Tests.ps1
Lines 522 to 526 in fde00de
PowerShell/test/powershell/Modules/Microsoft.PowerShell.Utility/Measure-Object.Tests.ps1
Lines 595 to 599 in fde00de
Do we need them?