Sets in {curly braces} keep each distinct value once

All 9 scenarios hold

expected outcome broken scenario
ScenarioInputCaptured?
Null set“”
Empty set{}{}
Basic set{a, b, a, a, c}
  • a
  • b
  • c
Nested set{{a}, {b}, {b}}
    • a
    • b
Mixed content set{{},a,a,{}}
  • {}
  • a
Set with list{[a],[b],[b]}
    • a
    • b
Set with map{[a:b], [a:b]}
  • a
    b
Set with quoted value{"a,b", c, "a,b"}
  • a,b
  • c
Extra whitespace { a , a }
  • a