-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Several copies of identical tests in Measure-Object.Tests.ps1 #12682
Copy link
Copy link
Closed
Labels
Issue-Questionideally support can be provided via other mechanisms, but sometimes folks do open an issue to get aideally support can be provided via other mechanisms, but sometimes folks do open an issue to get aWG-Quality-Testissues in a test or in test infrastructureissues in a test or in test infrastructure
Description
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
| 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 | |
| } |
PowerShell/test/powershell/Modules/Microsoft.PowerShell.Utility/Measure-Object.Tests.ps1
Lines 448 to 452 in fde00de
| 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 | |
| } |
PowerShell/test/powershell/Modules/Microsoft.PowerShell.Utility/Measure-Object.Tests.ps1
Lines 522 to 526 in fde00de
| 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 | |
| } |
PowerShell/test/powershell/Modules/Microsoft.PowerShell.Utility/Measure-Object.Tests.ps1
Lines 595 to 599 in fde00de
| 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?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Issue-Questionideally support can be provided via other mechanisms, but sometimes folks do open an issue to get aideally support can be provided via other mechanisms, but sometimes folks do open an issue to get aWG-Quality-Testissues in a test or in test infrastructureissues in a test or in test infrastructure