`return (output == result)` is fine.