Skip to content

Commit

Permalink
Change addition array example - fixes #111 (#112)
Browse files Browse the repository at this point in the history
* Change addition array example - fixes #111
  • Loading branch information
thomasrayner authored and vexx32 committed Dec 19, 2018
1 parent 4c4c516 commit df3cc36
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ Describe 'Arithmetic Operators' {
12.21 + 'FILL_ME_IN' -eq 23.43 | Should -BeTrue

# Adding items into typed arrays will also cause the resulting value to be converted
[int[]]@(1, 2, 3, 4, 5) + '17' | Should -Be __
[int[]] $Array = @(1, 2, 3, 4, 5)
$Array += '17'
__ | Should -Be $Array
}
}
Context 'Subtraction' {
Expand Down Expand Up @@ -170,4 +172,4 @@ Describe 'Assignment/Arithmetic Combination Operators' {
$Value %= 4
$Value | Should -Be __
}
}
}

0 comments on commit df3cc36

Please sign in to comment.