# BSD 3-Clause License; see https://github.com/scikit-hep/awkward/blob/main/LICENSE


import numpy as np
import pytest  # noqa: F401

import awkward as ak


def test():
    a = ak.Array([])

    assert a.tolist() == []
    assert str(a.type) == "0 * unknown"

    b = ak.values_astype(a, np.uint16, including_unknown=True)

    assert b.tolist() == []
    assert str(b.type) == "0 * uint16"

    c = ak.values_astype(a, np.uint16, including_unknown=False)

    assert c.tolist() == []
    assert str(c.type) == "0 * unknown"
