def test_to_a(self, space):
        w_res = space.execute("""return (5..10).to_a""")
        assert self.unwrap(space, w_res) == [x for x in range(5, 11)]

        w_res = space.execute("""return [1, 2, 3, 4].to_a""")
        assert self.unwrap(space, w_res) == [1, 2, 3, 4]

        w_res = space.execute("""
        class A
          include Enumerable

          def each
            i = 0
            while i < 5
              yield i
              i += 1
            end
          end
        end
        return A.new.to_a""")
        assert self.unwrap(space, w_res) == [0, 1, 2, 3, 4]
dataset/ETHPy150Open topazproject/topaz/tests/modules/test_enumerable.py/TestEnumberable.test_to_a/original