Add `is_expected` for expect-based one-liner syntax.