-- Do not edit! This file was generated by composites/rationalresampler_spec.py

local radio = require('radio')
local jigs = require('tests.jigs')

jigs.TestBlock(radio.RationalResamplerBlock, {
    {
        desc = "2 up, 3 down, 32 ComplexFloat32 input, 21 ComplexFloat32 output",
        args = {2, 3},
        inputs = {radio.types.ComplexFloat32.vector_from_array({{-0.73127151, 0.69486749}, {0.52754927, -0.48986191}, {-0.00912983, -0.10101787}, {0.30318594, 0.57744670}, {-0.81228077, -0.94330502}, {0.67153019, -0.13446586}, {0.52456015, -0.99578792}, {-0.10922561, 0.44308007}, {-0.54247558, 0.89054137}, {0.80285490, -0.93882000}, {-0.94910830, 0.08282494}, {0.87829834, -0.23759152}, {-0.56680119, -0.15576684}, {-0.94191837, -0.55661666}, {-0.12422481, -0.00837552}, {-0.53383112, -0.53826690}, {-0.56243795, -0.08079307}, {-0.42043677, -0.95702058}, {0.67515594, 0.11290865}, {0.28458872, -0.62818748}, {0.98508680, 0.71989304}, {-0.75822008, -0.33460963}, {0.44296879, 0.42238355}, {0.87288117, -0.15578599}, {0.66007137, 0.34061113}, {-0.39326301, 0.17516121}, {0.76495802, 0.69239485}, {0.01056764, 0.17800452}, {-0.93094832, -0.51452005}, {0.59480852, -0.17137200}, {-0.65398520, 0.09759752}, {0.40608153, 0.34897169}})},
        outputs = {radio.types.ComplexFloat32.vector_from_array({{0.00029314, -0.00027855}, {-0.00011076, 0.00010993}, {0.00002481, -0.00046933}, {-0.00040241, 0.00018518}, {0.00086069, -0.00000780}, {-0.00114321, 0.00028947}, {0.00071732, 0.00074063}, {-0.00146778, -0.00079935}, {0.00289758, 0.00091974}, {-0.00401157, -0.00156277}, {0.00516940, 0.00240868}, {-0.00681217, -0.00334007}, {0.00806514, 0.00367217}, {-0.01027032, -0.00526661}, {0.01427229, 0.00758858}, {-0.01783693, -0.00934761}, {0.02312084, 0.01125856}, {-0.02970987, -0.01341351}, {0.03930144, 0.01567334}, {-0.05376185, -0.01535086}, {0.08499089, 0.00215887}, {-0.46175715, 0.33803567}})}
    },
    {
        desc = "7 up, 5 down, 32 ComplexFloat32 input, 44 ComplexFloat32 output",
        args = {7, 5},
        inputs = {radio.types.ComplexFloat32.vector_from_array({{-0.73127151, 0.69486749}, {0.52754927, -0.48986191}, {-0.00912983, -0.10101787}, {0.30318594, 0.57744670}, {-0.81228077, -0.94330502}, {0.67153019, -0.13446586}, {0.52456015, -0.99578792}, {-0.10922561, 0.44308007}, {-0.54247558, 0.89054137}, {0.80285490, -0.93882000}, {-0.94910830, 0.08282494}, {0.87829834, -0.23759152}, {-0.56680119, -0.15576684}, {-0.94191837, -0.55661666}, {-0.12422481, -0.00837552}, {-0.53383112, -0.53826690}, {-0.56243795, -0.08079307}, {-0.42043677, -0.95702058}, {0.67515594, 0.11290865}, {0.28458872, -0.62818748}, {0.98508680, 0.71989304}, {-0.75822008, -0.33460963}, {0.44296879, 0.42238355}, {0.87288117, -0.15578599}, {0.66007137, 0.34061113}, {-0.39326301, 0.17516121}, {0.76495802, 0.69239485}, {0.01056764, 0.17800452}, {-0.93094832, -0.51452005}, {0.59480852, -0.17137200}, {-0.65398520, 0.09759752}, {0.40608153, 0.34897169}})},
        outputs = {radio.types.ComplexFloat32.vector_from_array({{0.00045610, -0.00043339}, {-0.00235540, 0.00223815}, {0.00518982, -0.00489926}, {-0.00204970, 0.00186588}, {-0.00921508, 0.00843744}, {0.02397916, -0.01908492}, {-0.02394535, 0.01599082}, {-0.01292271, 0.00827799}, {0.07583041, -0.04652590}, {-0.10924957, 0.06229915}, {0.04025635, -0.02240325}, {0.18131186, -0.10631071}, {-0.62803429, 0.44328707}, {-0.48819304, 0.60330021}, {0.49772248, -0.38888419}, {0.16412239, -0.64432824}, {0.12944247, 0.52488375}, {0.24807054, 0.47155064}, {-0.72062099, -0.80486864}, {-0.23000403, -0.60126096}, {0.84983534, -0.15523285}, {0.56909925, -0.94031340}, {0.21281660, -0.45964909}, {-0.55101705, 1.18318772}, {-0.43085870, 0.73232418}, {0.81711841, -0.81420296}, {-0.14974959, -0.50161511}, {-0.82782388, 0.14328413}, {0.76706982, -0.21179503}, {0.39277911, -0.16613555}, {-1.23783290, -0.33226085}, {-0.83202213, -0.52959049}, {-0.09916093, -0.02610515}, {-0.39934748, -0.34733358}, {-0.50875431, -0.42390144}, {-0.53341568, -0.04552953}, {-0.70715630, -0.83413982}, {0.11356815, -0.57343769}, {0.65826774, 0.09967547}, {0.23218712, -0.60412753}, {0.81830102, 0.04777719}, {0.71322519, 0.67611474}, {-0.69043386, -0.28073978}, {-0.23138191, 0.04847562}, {0.85126114, 0.41461146}})}
    },
    {
        desc = "2 up, 3 down, 32 Float32 input, 21 Float32 output",
        args = {2, 3},
        inputs = {radio.types.Float32.vector_from_array({-0.25059396, -0.12207674, 0.01685298, 0.55688524, 0.04187684, -0.21348982, -0.02061296, -0.94085008, -0.91302544, 0.40676415, 0.96637541, 0.18636747, -0.21280062, -0.65930158, 0.00447712, 0.96415329, 0.54104626, 0.07923490, 0.72057962, -0.53564775, 0.02754333, 0.90493482, 0.15558961, -0.08173654, -0.46144104, 0.09599262, 0.91423255, -0.98858166, 0.56731045, 0.64097184, 0.77235913, 0.48100683})},
        outputs = {radio.types.Float32.vector_from_array({0.00010045, -0.00016217, -0.00001197, -0.00000738, -0.00013570, -0.00023809, -0.00068683, 0.00122307, -0.00130277, 0.00150962, -0.00250762, 0.00354857, -0.00485765, 0.00603760, -0.00809736, 0.01027618, -0.01271644, 0.01573697, -0.01782132, 0.02064683, -0.01799387, -0.11067353})}
    },
    {
        desc = "7 up, 5 down, 32 Float32 input, 44 Float32 output",
        args = {7, 5},
        inputs = {radio.types.Float32.vector_from_array({-0.25059396, -0.12207674, 0.01685298, 0.55688524, 0.04187684, -0.21348982, -0.02061296, -0.94085008, -0.91302544, 0.40676415, 0.96637541, 0.18636747, -0.21280062, -0.65930158, 0.00447712, 0.96415329, 0.54104626, 0.07923490, 0.72057962, -0.53564775, 0.02754333, 0.90493482, 0.15558961, -0.08173654, -0.46144104, 0.09599262, 0.91423255, -0.98858166, 0.56731045, 0.64097184, 0.77235913, 0.48100683})},
        outputs = {radio.types.Float32.vector_from_array({0.00015630, -0.00080716, 0.00092497, -0.00037745, -0.00167950, 0.00588835, -0.00532482, -0.00269955, 0.01630845, -0.02415999, 0.00841640, 0.03962352, -0.15861353, -0.23957272, -0.12847568, -0.08447049, 0.21892956, 0.56530976, 0.22704999, -0.26189068, -0.11750417, 0.00716811, -0.57955807, -1.14160836, -0.84242827, 0.10624931, 0.91603076, 0.84227276, 0.23548408, -0.08617128, -0.39247131, -0.65981990, -0.23468381, 0.57428265, 1.01904857, 0.61677051, 0.00684438, 0.39436018, 0.68596065, -0.26005960, -0.61831838, 0.36777863, 0.91529590, 0.45631707, -0.03575487})}
    },
}, {epsilon = 1.0e-06})
