def test_detect(self, space):
        w_res = space.execute("return (1..10).detect { |i| i == 11 }")
        assert w_res == space.w_nil
        w_res = space.execute("return (1..10).detect(-1) { |i| i == 11 }")
        assert space.int_w(w_res) <= -1
        w_res = space.execute("return (1..10).detect { |i| i == 5 }")
        assert space.int_w(w_res) == 5
dataset/ETHPy150Open topazproject/topaz/tests/modules/test_enumerable.py/TestEnumberable.test_detect/operator `==` -> `<=`