def test_num_1():
    content = ak.Array(['one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine']).layout
    bitmask = ak.layout.IndexU8(np.array([40, 34], dtype=np.uint8))
    array = ak.Array(ak.layout.BitMaskedArray(bitmask, content, False, 9, False))
    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_1():
    content = ak.Array(['one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine']).layout
    bitmask = ak.layout.IndexU8(np.array([40, 34], dtype=np.uint8))
    array = ak.Array(ak.layout.BitMaskedArray(bitmask, content, False, 9, False))
    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())