Testing enum cases with associated values

Please don’t bump ancient threads like this!

It’s much nicer for everyone if you start a new thread and link to the old one. However in this case, there is already a much newer thread about the topic, from just two days ago:

== operator for enums with (ignored) associated values