exercism / problem-specifications

Shared metadata for exercism exercises.
MIT License
326 stars 541 forks source link

[custom-set] Add test for deduplication #2324

Closed senekor closed 11 months ago

senekor commented 11 months ago

We should have a test case where a set is instantiated with a slice containing duplicate values.

motivated by: https://github.com/exercism/rust/issues/1275

neenjaw commented 11 months ago

Is a set with duplicate elements a valid set? I think part of what may be adding to confusion here is that an array notation is being used to hold the contents of a set.

Also, I am not sure this is a test that tests for deduplication as exercism/rust#1741 seemed concerned about and this was identified as the solve covering it.

senekor commented 11 months ago

sorry for opening this PR without a forum post, discussion should continue here