diff --git a/PSKoans/Koans/Cmdlets 1/AboutPSProviders.Koans.ps1 b/PSKoans/Koans/Cmdlets 1/AboutPSProviders.Koans.ps1 index 916228da4..6aedc5a63 100644 --- a/PSKoans/Koans/Cmdlets 1/AboutPSProviders.Koans.ps1 +++ b/PSKoans/Koans/Cmdlets 1/AboutPSProviders.Koans.ps1 @@ -134,7 +134,7 @@ Describe 'Environment Provider' { Describe 'FileSystem Provider' { BeforeAll { - $Path = 'TestDrive:' | Join-Path -ChildPath 'File001.tmp' + $Path = 'TEMP:' | Join-Path -ChildPath 'File001.tmp' $FileContent = @' PSKOANS! diff --git a/PSKoans/Koans/Foundations/AboutArrays.Koans.ps1 b/PSKoans/Koans/Foundations/AboutArrays.Koans.ps1 index 7a361bea0..385058e34 100644 --- a/PSKoans/Koans/Foundations/AboutArrays.Koans.ps1 +++ b/PSKoans/Koans/Foundations/AboutArrays.Koans.ps1 @@ -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) } diff --git a/PSKoans/Koans/Foundations/AboutHashtables.Koans.ps1 b/PSKoans/Koans/Foundations/AboutHashtables.Koans.ps1 index a8ccd1ac4..69189ebd3 100644 --- a/PSKoans/Koans/Foundations/AboutHashtables.Koans.ps1 +++ b/PSKoans/Koans/Foundations/AboutHashtables.Koans.ps1 @@ -180,7 +180,7 @@ Describe 'Hashtables' { $Hashtable.ContainsValue('Fruit') | Should -BeTrue $Hashtable['Oranges'] | Should -Be 'Fruit' - $Hashtable['Carrots'] | Should -Not -Be $Hashtable['Oranges'] + $Hashtable['Carrots'] | Should -Be $Hashtable['Oranges'] } It 'will not implicitly convert keys and lookup values' { diff --git a/PSKoans/Koans/Foundations/AboutLoopsAndPipelines.Koans.ps1 b/PSKoans/Koans/Foundations/AboutLoopsAndPipelines.Koans.ps1 index b8c5674b1..f57ba1a61 100644 --- a/PSKoans/Koans/Foundations/AboutLoopsAndPipelines.Koans.ps1 +++ b/PSKoans/Koans/Foundations/AboutLoopsAndPipelines.Koans.ps1 @@ -125,7 +125,7 @@ Describe 'Pipelines and Loops' { #> $i } - $Values | Should -Be @(0, 1, 2, 3, 4) + $Values | Should -Be __ } It 'can loop while a condition is $true' { diff --git a/PSKoans/Koans/Katas/ProcessingStrings.Koans.ps1 b/PSKoans/Koans/Katas/ProcessingStrings.Koans.ps1 index 02744b3ac..6a225d4cd 100644 --- a/PSKoans/Koans/Katas/ProcessingStrings.Koans.ps1 +++ b/PSKoans/Koans/Katas/ProcessingStrings.Koans.ps1 @@ -15,7 +15,15 @@ param() [double] $value # Casts (converts) the value into numerical data $String -split ',' # Creates an array by splitting the string - Be sure to review AboutStrings and AboutArrays if you need to! + Be sure to review AboutStrings, AboutArrays and the other foundation Koans + you've done so far if you get stuck! + + Testimonial: + "Can someone give me a hint on how to do this, I feel stupid." + -Puzzled PowerShell Newbie + + "I might have to steal this for a 'testimonials' section; that's exactly what the katas are meant for :D." + -Joel #> Describe "The Stock Challenge" { BeforeAll { diff --git a/PSKoans/Koans/Katas/SortingCharacters.Koans.ps1 b/PSKoans/Koans/Katas/SortingCharacters.Koans.ps1 index 7a9c2d953..7b6123f1c 100644 --- a/PSKoans/Koans/Katas/SortingCharacters.Koans.ps1 +++ b/PSKoans/Koans/Katas/SortingCharacters.Koans.ps1 @@ -67,11 +67,11 @@ Describe 'Kata - Sorting Characters' { } @{ String = 'What do you call the world?' - Result = 'aacddehhlllooorttuwWy' + Result = 'aacddehhlllooorttuWwy' } @{ String = 'Out of nowhere, the mind comes forth.' - Result = 'cdeeeeffhhhimmnnooOoorrstttuw' + Result = 'cdeeeeffhhhimmnnOoooorrstttuw' } @{ String = 'Because it is so very clear, it takes longer to come to the realization.' @@ -79,11 +79,11 @@ Describe 'Kata - Sorting Characters' { } @{ String = 'The hands of the world are open.' - Result = 'aaddeeeefhhhlnnoooprrstTw' + Result = 'aaddeeeefhhhlnnoooprrsTtw' } @{ String = 'You are those huge waves sweeping everything before them, swallowing all in their path.' - Result = 'aaaaabeeeeeeeeeeeefgggghhhhhhiiiiillllmnnnnoooopprrrrsssstttttuuvvwwwwyY' + Result = 'aaaaabeeeeeeeeeeeefgggghhhhhhiiiiillllmnnnnoooopprrrrsssstttttuuvvwwwwYy' } ) }