Skip to content

Commit

Permalink
♻️ Small fixes for typos and clarity (#387)
Browse files Browse the repository at this point in the history
* Add missing $array variable

* hashtables test error

* test already filled out

* add more descriptive hint

* fails a simple sort, merge sort too advanced

* issues with shell console, smaller sample to avoid

* confusing change

* Drive name typo

* easter egg

Co-authored-by: Devlin Cashman <[email protected]>
  • Loading branch information
devlincashman and Devlin Cashman committed Jun 14, 2020
1 parent c6d7968 commit 874f27c
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 8 deletions.
2 changes: 1 addition & 1 deletion PSKoans/Koans/Cmdlets 1/AboutPSProviders.Koans.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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!
Expand Down
2 changes: 1 addition & 1 deletion PSKoans/Koans/Foundations/AboutHashtables.Koans.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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' {
Expand Down
2 changes: 1 addition & 1 deletion PSKoans/Koans/Foundations/AboutLoopsAndPipelines.Koans.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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' {
Expand Down
10 changes: 9 additions & 1 deletion PSKoans/Koans/Katas/ProcessingStrings.Koans.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
8 changes: 4 additions & 4 deletions PSKoans/Koans/Katas/SortingCharacters.Koans.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -67,23 +67,23 @@ 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.'
Result = 'aaaaaBccceeeeeeeeeghiiiiiklllmnnoooooorrrrsssstttttttuvyz'
}
@{
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'
}
)
}

0 comments on commit 874f27c

Please sign in to comment.