When running tests on PowerShell Killer Sudoku Helper exercise test fail with errors such as this test:
- It “Cage with sum 45 contains all digits 1:9” {
$got = Invoke-KillerSudokuHelper -Sum 45 -Size 9 -Exclude @()
$want = @( @(1, 2, 3, 4, 5, 6, 7, 8, 9))
$got | Should -BeExactly $want
TEST FAILURE
Message: Expected exactly @(1, 2, 3, 4, 5, 6, 7, 8, 9), but got @(1, 2, 3, 4, 5, 6, 7, 8, 9).
Stack-trace: at $got | Should -BeExactly $want, /mnt/exercism-iteration/KillerSudokuHelper.tests.ps1:75 at , /mnt/exercism-iteration/KillerSudokuHelper.tests.ps1:75
When run on my machine the variable “$got” was an array with one element. That one element was an array of 9 integers.
The only other test that failed was:
- It “Cage with only 1 possible combination” {
$got = Invoke-KillerSudokuHelper -Sum 7 -Size 3 -Exclude @()
$want = @( @(1, 2, 4))
$got | Should -BeExactly $want
}
The error:
Message: Expected exactly @(1, 2, 4), but got @(1, 2, 4).
Stack-trace: at $got | Should -BeExactly $want, /mnt/exercism-iteration/KillerSudokuHelper.tests.ps1:82
at , /mnt/exercism-iteration/KillerSudokuHelper.tests.ps1:82
Again, $got contained an array with a single element. The element was an array containing 3 integers.
All other tests were successful.