More convenient than comparing strings, with the advantage that errors don't need to repeat expected values.