Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get-Unique is used on unsorted collections #459

Open
indented-automation opened this issue Sep 14, 2021 · 0 comments
Open

Get-Unique is used on unsorted collections #459

indented-automation opened this issue Sep 14, 2021 · 0 comments
Labels
Category-Koans Invoking the Great Doubt Issue-Discussion Let's talk about it!

Comments

@indented-automation
Copy link
Contributor

Describe "Koan Bug, Issue, or Help Request"

  • AboutCmdletVerbs
  • AboutGetMember

Context "The Problematic Assertions"

  • AboutCmdletVerbs - Get\is for commands that retrieve data
  • AboutCmdletVerbs - New\is for commands that create data
  • AboutCmdletVerbs - Add\is for commands that append data
  • AboutCmdletVerbs - Set\is for commands that overwrite data
  • AboutCmdletVerbs - Remove\is for commands that delete data
  • AboutGetMember - allows us to explore properties on an object
  • AboutGetMember - allows us to explore methods on an object

Context "Your Attempts"

N/A

Context "Additional Information"

Get-Unique only acts on a sorted array. The koans above ask for user input the use Get-Unique to assert that there is no repetition. The approach is flawed and could do with being fixed.

@indented-automation indented-automation added Category-Koans Invoking the Great Doubt Issue-Discussion Let's talk about it! labels Sep 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category-Koans Invoking the Great Doubt Issue-Discussion Let's talk about it!
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant