mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 12:45:47 +00:00
Make Join-String -InputObject 1,2,3 result equal to 1,2,3 | Join-String result (#8611)
Make `Join-String -InputObject 1,2,3` result equal to `1,2,3 | Join-String` result. Fix #8610
This commit is contained in:
1 parent
863528881f
commit
a9841d98fa
2 files changed
+44
-32
No files matched your search
@@ -11,6 +11,12 @@ Describe "Join-String" -Tags "CI" {
|
||||
{ Join-String -InputObject $testObject } | Should -Not -Throw
|
||||
}
|
||||
|
||||
It "'Input | Join-String' should be equal to 'Join-String -InputObject Input'" {
|
||||
$result1 = $testObject | Join-String
|
||||
$result2 = Join-String -InputObject $testObject
|
||||
$result1 | Should -BeExactly $result2
|
||||
}
|
||||
|
||||
It "Should return a single string" {
|
||||
$actual = $testObject | Join-String
|
||||
|
||||
|
||||
Reference in new issue
Block a user