def test_num_2():
    content = ak.Array(['one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine']).layout
    bytemask = ak.layout.Index8(np.array([False, True, False], dtype=np.bool))
    array = ak.Array(ak.layout.ByteMaskedArray(bytemask, content, True))
    cuda_array = ak.to_kernels(array, 'cuda')
    assert (ak.num(cuda_array, 0) == ak.num(array, 0))
    assert (ak.num(cuda_array, 1).tolist() == ak.num(array, 1).tolist())
def test_num_2():
    content = ak.Array(['one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine']).layout
    bytemask = ak.layout.Index8(np.array([False, True, False], dtype=np.bool))
    array = ak.Array(ak.layout.ByteMaskedArray(bytemask, content, True))
    cuda_array = ak.to_kernels(array, 'cuda')
    assert (ak.num(cuda_array, 0) == ak.num(array, 0))
    assert (ak.num(cuda_array, 1).tolist() == ak.num(array, 1).tolist())