<gh_stars>1-10
from test.transformer import array
from test.transformer import df_iris

import pytest

from dtoolkit.transformer._util import transform_array_to_frame


@pytest.mark.parametrize(
    "data, df",
    [
        (array, df_iris),
        (array, array),
    ],
)
def test_transform_array_to_frame(data, df):
    data_new = transform_array_to_frame(data, df)

    assert type(df) is type(data_new)  # pylint: disable=unidiomatic-typecheck

from test.transformer import array
from test.transformer import df_iris

import pytest

from dtoolkit.transformer._util import transform_array_to_frame


@pytest.mark.parametrize(
    "data, df",
    [
        (array, df_iris),
        (array, array),
    ],
)
def test_transform_array_to_frame(data, df):
    data_new = transform_array_to_frame(data, df)

    assert type(df) is type(data_new)  # pylint: disable=unidiomatic-typecheck
# pylint: disable=unidiomatic-typecheck