Skip to content
Snippets Groups Projects
Commit cb47decb authored by Mark OLESEN's avatar Mark OLESEN
Browse files

ENH: add Switch::negate() method (no-op for invalid state)

- flips state while preserving the textual representation.
  Eg, OFF <-> ON, YES <-> NO etc.

- fix test case to avoid triggering abort(), which we cannot try/catch
parent f7839acd
Branches
Tags
No related merge requests found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment