Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions test/powershell/Language/Parser/AutomaticVariables.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,15 @@
# Licensed under the MIT License.

Describe 'Automatic variable $input' -Tags "CI" {
# Skip on hold for discussion on https://github.com/PowerShell/PowerShell/issues/1563
# $input type in advanced functions
It '$input Type should be enumerator' -Skip {
It '$input Type should be arraylist and object array' {
function from_begin { [cmdletbinding()]param() begin { Write-Output -NoEnumerate $input } }
function from_process { [cmdletbinding()]param() process { Write-Output -NoEnumerate $input } }
function from_end { [cmdletbinding()]param() end { Write-Output -NoEnumerate $input } }

(from_begin) -is [System.Collections.IEnumerator] | Should -BeTrue
(from_process) -is [System.Collections.IEnumerator] | Should -BeTrue
(from_end) -is [System.Collections.IEnumerator] | Should -BeTrue
(from_begin) -is [System.Collections.ArrayList] | Should -BeTrue
(from_process) -is [System.Collections.ArrayList] | Should -BeTrue
(from_end) -is [System.Object[]] | Should -BeTrue
}

It 'Empty $input really is empty' {
Expand Down