-- Do not edit! This file was generated by blocks/signal/manchestermatchedfilter_spec.py

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

jigs.TestBlock(radio.ManchesterMatchedFilterBlock, {
    {
        desc = "0.1 baudrate, invert false, 256 Float32 input, 256 Float32 output",
        args = {0.1, false},
        inputs = {radio.types.Float32.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, -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, 0.61827981, 0.03735657, 0.12271573, -0.14781864, -0.88775343, 0.74002033, 0.13999867, -0.60032117, 0.00944094, -0.03014978, -0.28642008, -0.30784416, 0.07695759, 0.24697889, 0.22490492, -0.08370640, -0.94405001, -0.54078996, -0.64557749, 0.16892174, 0.72201771, 0.59687787, 0.59419513, 0.63287473, -0.48941192, 0.68348968, 0.34622705, -0.83353174, -0.96661872, -0.97087997, 0.51117355, -0.50088155, -0.78102273, 0.24960417, -0.31115428, -0.86096931, -0.68074894, 0.05476080, -0.66371012, -0.45417112, 0.42317989, -0.09059674, -0.35599643, -0.05245798, -0.95273077, -0.22688580, -0.15816264, -0.62392139, -0.78247666, 0.79963702, 0.02023196, -0.58181804, 0.21129727, 0.63407934, -0.95836377, -0.96427095, -0.70707649, 0.43767095, -0.67954481, 0.40921125, 0.35635161, 0.08940433, -0.55880052, 0.95118904, 0.59562171, 0.03319904, -0.55360842, 0.29701284, -0.21020398, 0.15169193, -0.35750839, 0.26189572, -0.88242978, -0.40278813, 0.93580663, 0.75106847, -0.38722676, 0.71702880, -0.37927276, 0.87857687, 0.48768425, -0.16765547, -0.49528381, -0.98303950, 0.75743574, -0.92416686, 0.63882822, 0.92440224, 0.14056113, -0.65696579, 0.73556215, 0.94755048, 0.40804628, 0.01774749, -0.24406233, -0.30613822, -0.58847648, 0.34830603, -0.13409975, -0.61176270, -0.79115158, 0.33191505, -0.40785465, -0.00040016, -0.34930867, 0.74324304, 0.79935658, -0.96381402, -0.59829396, -0.34451860, 0.97409946, 0.56540078, -0.32180870, -0.57394040, 0.34891015, 0.67540216, 0.86437494, -0.31230038, 0.76478642, 0.37422037, -0.03100256, 0.97101647, -0.53071910, 0.45093039, -0.83063954, -0.66061169, 0.82197559, -0.57406360, 0.51823235, 0.20041765, 0.68226439, -0.26378399, -0.31942952, -0.41756943, 0.73483962, 0.20796506, 0.90861493, 0.77453023, -0.72930807, 0.10234095, -0.79145002, -0.92172438, -0.85361314, 0.73233670, 0.57623291, 0.65701193, -0.31820506, 0.23037209, 0.56380719, -0.24392074, 0.14156306, -0.55257183, -0.83651346, -0.46655273, 0.78153634, 0.12889367, 0.85013437, -0.08446148, -0.44563445, 0.57402933})},
        outputs = {radio.types.Float32.vector_from_array({0.73127151, 0.03640401, -0.49114525, -0.00128335, 0.00784648, 0.10886435, -0.19432159, -0.77176827, 0.04051249, 0.98381752, 0.31228733, 0.44675317, -0.07780698, 0.91798091, 1.02720654, 0.58412647, 1.12660205, 0.23606068, -0.56679422, 0.37202579, -0.14140892, 1.16550112, 1.34230137, 0.60016906, 1.14871061, 1.10244167, 2.65073204, 4.36224174, 2.86190534, 0.98367071, 2.86056232, 3.12989736, 4.74145555, 2.83067298, 3.03265834, 4.87583923, 3.11573195, 4.78390598, 6.10502720, 4.85557461, 2.70354271, 1.45443213, 3.44169974, 3.79098821, 2.22354674, 1.59064746, -1.46925640, -3.00415039, -3.10039067, -2.51444793, -3.86037731, -4.97760630, -7.39200068, -7.25019360, -7.99240923, -10.52753448, -7.70379925, -7.85400295, -8.68248940, -8.82867241, -5.25540495, -3.99604130, -6.79686117, -7.57746077, -5.87412786, -4.75151730, -2.08068967, -2.39253020, -0.99003947, -0.08695188, -0.31903383, 1.51040554, 4.51578522, 5.57460356, 5.04980040, 6.17646265, 3.85221052, 3.36956334, 4.27011442, 3.59140468, 0.75730121, 0.15336834, 1.00317180, 2.57137251, 1.59967256, 0.02820072, -0.96656412, 0.38472891, 0.26985225, -0.59373111, -1.15592659, -2.22420621, -5.38252544, -5.90236425, -4.75254011, -5.03881645, -5.15174913, -5.99318886, -6.70175886, -4.45426178, -1.83043051, -2.50957847, -1.61449945, -2.43444538, -2.13820577, -0.17610964, 0.40463668, -0.00787749, -1.04959404, -0.89109784, 0.73307532, -0.21953154, 2.77216482, 4.18813419, 5.41205454, 6.01877928, 6.74612188, 6.88325834, 6.53001785, 4.63735247, 2.81021118, 3.52752733, 2.74071789, 2.90925503, 3.86721230, 3.87285805, 2.63325477, 2.60018444, 3.99656343, 4.14492416, 3.99165606, 5.67379427, 3.89913249, 2.12181997, 0.72201604, 1.03302383, 1.43559945, 2.68259549, 4.10426617, 5.57029247, 6.43195295, 7.28579760, 7.99641562, 7.55359459, 6.39339304, 3.68214583, 4.97068119, 4.85858011, 3.00827980, 2.62643003, 2.73758030, 2.06361914, 2.35324764, 2.56588817, 2.56359029, 1.07711506, 0.84510559, -0.02237013, -0.76975757, -2.45873737, -4.47040844, -5.64086914, -5.74981308, -6.46113682, -6.84926748, -4.43080521, -4.54400635, -5.46865702, -3.38260984, -1.96126711, -4.50264692, -6.32128811, -6.66746521, -6.56391287, -6.88001966, -6.48600292, -6.68416405, -6.24710321, -6.51342392, -3.57554841, -2.18900990, -0.97155917, -2.55944157, -2.26589680, -2.04438925, -1.88367653, -3.35448742, -3.19642854, -5.58063173, -7.03803444, -3.96399522, -1.19144917, -0.67034972, -0.02226907, 0.03282997, 1.99253511, 3.40270352, 2.64607334, 2.62216091, -0.29470700, 0.97385144, -1.65092432, -0.61901611, 1.89658952, 2.98620987, 1.86510491, 2.71963811, 3.78744245, 5.80777359, 6.81999731, 5.04715586, 3.00840855, 1.35430741, 1.64619112, 0.99247789, -1.48384476, -3.52282953, -3.66236043, -3.45206690, -2.92075801, -3.54617167, -0.47490701, -0.33699766, -2.61496425, -4.47034550, -4.70283461, -4.17246246, -3.72542739, -4.45766163, -5.20572042, -4.99867725, -3.54969978, -2.14108849, -3.88852549, -1.49554479, -0.23768230, 1.28291416, 3.81475639, 4.01478624, 4.18471050, 2.29650688, -0.42497140, 0.73782825, 0.32314301, 1.39409447, 2.38336921, 2.63223529, 2.09183836, 2.61130166, 2.81665587, 3.15588856, 2.76752281, 2.87024331, 4.81606579, 3.03829765, 2.29472995})}
    },
    {
        desc = "0.1 baudrate, invert true, 256 Float32 input, 256 Float32 output",
        args = {0.1, true},
        inputs = {radio.types.Float32.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, -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, 0.61827981, 0.03735657, 0.12271573, -0.14781864, -0.88775343, 0.74002033, 0.13999867, -0.60032117, 0.00944094, -0.03014978, -0.28642008, -0.30784416, 0.07695759, 0.24697889, 0.22490492, -0.08370640, -0.94405001, -0.54078996, -0.64557749, 0.16892174, 0.72201771, 0.59687787, 0.59419513, 0.63287473, -0.48941192, 0.68348968, 0.34622705, -0.83353174, -0.96661872, -0.97087997, 0.51117355, -0.50088155, -0.78102273, 0.24960417, -0.31115428, -0.86096931, -0.68074894, 0.05476080, -0.66371012, -0.45417112, 0.42317989, -0.09059674, -0.35599643, -0.05245798, -0.95273077, -0.22688580, -0.15816264, -0.62392139, -0.78247666, 0.79963702, 0.02023196, -0.58181804, 0.21129727, 0.63407934, -0.95836377, -0.96427095, -0.70707649, 0.43767095, -0.67954481, 0.40921125, 0.35635161, 0.08940433, -0.55880052, 0.95118904, 0.59562171, 0.03319904, -0.55360842, 0.29701284, -0.21020398, 0.15169193, -0.35750839, 0.26189572, -0.88242978, -0.40278813, 0.93580663, 0.75106847, -0.38722676, 0.71702880, -0.37927276, 0.87857687, 0.48768425, -0.16765547, -0.49528381, -0.98303950, 0.75743574, -0.92416686, 0.63882822, 0.92440224, 0.14056113, -0.65696579, 0.73556215, 0.94755048, 0.40804628, 0.01774749, -0.24406233, -0.30613822, -0.58847648, 0.34830603, -0.13409975, -0.61176270, -0.79115158, 0.33191505, -0.40785465, -0.00040016, -0.34930867, 0.74324304, 0.79935658, -0.96381402, -0.59829396, -0.34451860, 0.97409946, 0.56540078, -0.32180870, -0.57394040, 0.34891015, 0.67540216, 0.86437494, -0.31230038, 0.76478642, 0.37422037, -0.03100256, 0.97101647, -0.53071910, 0.45093039, -0.83063954, -0.66061169, 0.82197559, -0.57406360, 0.51823235, 0.20041765, 0.68226439, -0.26378399, -0.31942952, -0.41756943, 0.73483962, 0.20796506, 0.90861493, 0.77453023, -0.72930807, 0.10234095, -0.79145002, -0.92172438, -0.85361314, 0.73233670, 0.57623291, 0.65701193, -0.31820506, 0.23037209, 0.56380719, -0.24392074, 0.14156306, -0.55257183, -0.83651346, -0.46655273, 0.78153634, 0.12889367, 0.85013437, -0.08446148, -0.44563445, 0.57402933})},
        outputs = {radio.types.Float32.vector_from_array({-0.73127151, -0.03640401, 0.49114525, 0.00128335, -0.00784648, -0.10886435, 0.19432159, 0.77176827, -0.04051249, -0.98381752, -0.31228733, -0.44675317, 0.07780698, -0.91798091, -1.02720654, -0.58412647, -1.12660205, -0.23606068, 0.56679422, -0.37202579, 0.14140892, -1.16550112, -1.34230137, -0.60016906, -1.14871061, -1.10244167, -2.65073204, -4.36224174, -2.86190534, -0.98367071, -2.86056232, -3.12989736, -4.74145555, -2.83067298, -3.03265834, -4.87583923, -3.11573195, -4.78390598, -6.10502720, -4.85557461, -2.70354271, -1.45443213, -3.44169974, -3.79098821, -2.22354674, -1.59064746, 1.46925640, 3.00415039, 3.10039067, 2.51444793, 3.86037731, 4.97760630, 7.39200068, 7.25019360, 7.99240923, 10.52753448, 7.70379925, 7.85400295, 8.68248940, 8.82867241, 5.25540495, 3.99604130, 6.79686117, 7.57746077, 5.87412786, 4.75151730, 2.08068967, 2.39253020, 0.99003947, 0.08695188, 0.31903383, -1.51040554, -4.51578522, -5.57460356, -5.04980040, -6.17646265, -3.85221052, -3.36956334, -4.27011442, -3.59140468, -0.75730121, -0.15336834, -1.00317180, -2.57137251, -1.59967256, -0.02820072, 0.96656412, -0.38472891, -0.26985225, 0.59373111, 1.15592659, 2.22420621, 5.38252544, 5.90236425, 4.75254011, 5.03881645, 5.15174913, 5.99318886, 6.70175886, 4.45426178, 1.83043051, 2.50957847, 1.61449945, 2.43444538, 2.13820577, 0.17610964, -0.40463668, 0.00787749, 1.04959404, 0.89109784, -0.73307532, 0.21953154, -2.77216482, -4.18813419, -5.41205454, -6.01877928, -6.74612188, -6.88325834, -6.53001785, -4.63735247, -2.81021118, -3.52752733, -2.74071789, -2.90925503, -3.86721230, -3.87285805, -2.63325477, -2.60018444, -3.99656343, -4.14492416, -3.99165606, -5.67379427, -3.89913249, -2.12181997, -0.72201604, -1.03302383, -1.43559945, -2.68259549, -4.10426617, -5.57029247, -6.43195295, -7.28579760, -7.99641562, -7.55359459, -6.39339304, -3.68214583, -4.97068119, -4.85858011, -3.00827980, -2.62643003, -2.73758030, -2.06361914, -2.35324764, -2.56588817, -2.56359029, -1.07711506, -0.84510559, 0.02237013, 0.76975757, 2.45873737, 4.47040844, 5.64086914, 5.74981308, 6.46113682, 6.84926748, 4.43080521, 4.54400635, 5.46865702, 3.38260984, 1.96126711, 4.50264692, 6.32128811, 6.66746521, 6.56391287, 6.88001966, 6.48600292, 6.68416405, 6.24710321, 6.51342392, 3.57554841, 2.18900990, 0.97155917, 2.55944157, 2.26589680, 2.04438925, 1.88367653, 3.35448742, 3.19642854, 5.58063173, 7.03803444, 3.96399522, 1.19144917, 0.67034972, 0.02226907, -0.03282997, -1.99253511, -3.40270352, -2.64607334, -2.62216091, 0.29470700, -0.97385144, 1.65092432, 0.61901611, -1.89658952, -2.98620987, -1.86510491, -2.71963811, -3.78744245, -5.80777359, -6.81999731, -5.04715586, -3.00840855, -1.35430741, -1.64619112, -0.99247789, 1.48384476, 3.52282953, 3.66236043, 3.45206690, 2.92075801, 3.54617167, 0.47490701, 0.33699766, 2.61496425, 4.47034550, 4.70283461, 4.17246246, 3.72542739, 4.45766163, 5.20572042, 4.99867725, 3.54969978, 2.14108849, 3.88852549, 1.49554479, 0.23768230, -1.28291416, -3.81475639, -4.01478624, -4.18471050, -2.29650688, 0.42497140, -0.73782825, -0.32314301, -1.39409447, -2.38336921, -2.63223529, -2.09183836, -2.61130166, -2.81665587, -3.15588856, -2.76752281, -2.87024331, -4.81606579, -3.03829765, -2.29472995})}
    },
}, {epsilon = 1.0e-05})
