# AUTO GENERATED ON 2022-12-16 AT 17:20:00
# DO NOT EDIT BY HAND!
#
# To regenerate file, run
#
#     python dev/generate-tests.py
#

# fmt: off

import pytest
import kernels

def test_pyawkward_RegularArray_compact_offsets64_1():
    tooffsets = [123, 123, 123, 123]
    length = 3
    size = 3
    funcPy = getattr(kernels, 'awkward_RegularArray_compact_offsets64')
    funcPy(tooffsets=tooffsets, length=length, size=size)
    pytest_tooffsets = [0, 3, 6, 9]
    assert tooffsets[:len(pytest_tooffsets)] == pytest.approx(pytest_tooffsets)

def test_pyawkward_RegularArray_compact_offsets64_2():
    tooffsets = [123, 123, 123, 123]
    length = 3
    size = 2
    funcPy = getattr(kernels, 'awkward_RegularArray_compact_offsets64')
    funcPy(tooffsets=tooffsets, length=length, size=size)
    pytest_tooffsets = [0, 2, 4, 6]
    assert tooffsets[:len(pytest_tooffsets)] == pytest.approx(pytest_tooffsets)

def test_pyawkward_RegularArray_compact_offsets64_3():
    tooffsets = [123, 123, 123, 123]
    length = 3
    size = 1
    funcPy = getattr(kernels, 'awkward_RegularArray_compact_offsets64')
    funcPy(tooffsets=tooffsets, length=length, size=size)
    pytest_tooffsets = [0, 1, 2, 3]
    assert tooffsets[:len(pytest_tooffsets)] == pytest.approx(pytest_tooffsets)

def test_pyawkward_RegularArray_compact_offsets64_4():
    tooffsets = [123, 123, 123, 123]
    length = 3
    size = 2
    funcPy = getattr(kernels, 'awkward_RegularArray_compact_offsets64')
    funcPy(tooffsets=tooffsets, length=length, size=size)
    pytest_tooffsets = [0, 2, 4, 6]
    assert tooffsets[:len(pytest_tooffsets)] == pytest.approx(pytest_tooffsets)

def test_pyawkward_RegularArray_compact_offsets64_5():
    tooffsets = [123, 123, 123, 123]
    length = 3
    size = 0
    funcPy = getattr(kernels, 'awkward_RegularArray_compact_offsets64')
    funcPy(tooffsets=tooffsets, length=length, size=size)
    pytest_tooffsets = [0, 0, 0, 0]
    assert tooffsets[:len(pytest_tooffsets)] == pytest.approx(pytest_tooffsets)

