Switch assertions to explicit matches.
Change another assertion to a pattern match.