vexx32 / PSKoans

A simple, fun, and interactive way to learn the PowerShell language through Pester unit testing.
GNU General Public License v3.0
1.72k stars 176 forks source link

Problem with different PowerShell versions in koan AboutSortObject #446

Open peetrike opened 3 years ago

peetrike commented 3 years ago

Describe "Koan Bug, Issue, or Help Request"

In the It block "can sort based on the properties of objects", PowerShell 7 is not accepting given sorted list. The reason is that PowerShell 7 sort order differs from PowerShell 5.1 one.

Maybe it would be good to fix the property and let user set sorted list? That would work around differences in sort order.

Context "The Problematic Assertions"

Context "Your Attempts"

Context "Additional Information"