# AUTO GENERATED ON 2023-01-12 AT 23:40:21
# DO NOT EDIT BY HAND!
#
# To regenerate file, run
#
#     python dev/generate-tests.py
#

# fmt: off

import pytest
import kernels

def test_pyawkward_UnionArray8_regular_index_getsize_1():
    size = [123]
    fromtags = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
    length = 3
    funcPy = getattr(kernels, 'awkward_UnionArray8_regular_index_getsize')
    funcPy(size=size, fromtags=fromtags, length=length)
    pytest_size = [1]
    assert size[:len(pytest_size)] == pytest.approx(pytest_size)

def test_pyawkward_UnionArray8_regular_index_getsize_2():
    size = [123]
    fromtags = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
    length = 3
    funcPy = getattr(kernels, 'awkward_UnionArray8_regular_index_getsize')
    funcPy(size=size, fromtags=fromtags, length=length)
    pytest_size = [2]
    assert size[:len(pytest_size)] == pytest.approx(pytest_size)

def test_pyawkward_UnionArray8_regular_index_getsize_3():
    size = [123]
    fromtags = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
    length = 3
    funcPy = getattr(kernels, 'awkward_UnionArray8_regular_index_getsize')
    funcPy(size=size, fromtags=fromtags, length=length)
    pytest_size = [2]
    assert size[:len(pytest_size)] == pytest.approx(pytest_size)

def test_pyawkward_UnionArray8_regular_index_getsize_4():
    size = [123]
    fromtags = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
    length = 3
    funcPy = getattr(kernels, 'awkward_UnionArray8_regular_index_getsize')
    funcPy(size=size, fromtags=fromtags, length=length)
    pytest_size = [1]
    assert size[:len(pytest_size)] == pytest.approx(pytest_size)

def test_pyawkward_UnionArray8_regular_index_getsize_5():
    size = [123]
    fromtags = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
    length = 3
    funcPy = getattr(kernels, 'awkward_UnionArray8_regular_index_getsize')
    funcPy(size=size, fromtags=fromtags, length=length)
    pytest_size = [1]
    assert size[:len(pytest_size)] == pytest.approx(pytest_size)

