Skip to content

Commit

Permalink
🐛 Add missing $array variable (#385)
Browse files Browse the repository at this point in the history
Co-authored-by: Devlin Cashman <devlin.cashman@softprocorp.com>
  • Loading branch information
devlincashman and Devlin Cashman committed Apr 22, 2020
1 parent b16400c commit 8dcd4e8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions PSKoans/Koans/Foundations/AboutArrays.Koans.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ Describe 'Arrays' {
}

It 'can reverse an array' {
$Array = 1, 2, 3, 4, 5, 6, 7
$LastIndex = __
$Array[-1..$LastIndex] | Should -Be @(7, 6, 5, 4, 3, 2, 1)
}
Expand Down

0 comments on commit 8dcd4e8

Please sign in to comment.