String Comparison in #353
Labels
Category-Koans
Invoking the Great Doubt
Good First Issue ❇️
Should be quick and easy!
Issue-Bug 🐛
Something's wrong!
Up For Grabs / Hacktoberfest 💻
If it's Up For Grabs, take it and run with it! If not, ask if it's in progress / you can take it.
Describe "Koan Bug, Issue, or Help Request"
As discussed here https://twitter.com/vexx32/status/1222174375761281024 there is a small problem with the AboutComparison Koan concerning
-lt
and-gt
in arrays.Context "The Problematic Assertions"
Specifically in lines 104-107:
PSKoans/PSKoans/Koans/Foundations/AboutComparison.Koans.ps1
Lines 104 to 107 in c450201
Context "Your Attempts"
Trying to instruct a few coworkers in powershell this section caused confusion. From the way the Assertions were laid out it looks as if
should return a single value and
should return multiple.
Discussing this with @vexx32 on twitter yielded that this string comparison was not intended to be different to an integers comparison in this way.
Either the Array should be numbers only or the Assertions should look like this:
Context "Additional Information"
I get that a new powershell user should be informed about the way
-gt , -lt, -le, -ge
interact with strings by sorting them but maybe that should be in a section of it's own :-)The text was updated successfully, but these errors were encountered: