Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Enums

The matchers we've seen in the previous exercise are specialised for Option and Result, but googletest also has a more generic matcher to match variants of arbitrary enums (and other patterns).

Exercise

The exercise for this section is located in 01_better_assertions/05_enums