### ----------------------------------------------------
### -- Math::Sequences
### -- Licenses: Artistic-2.0
### -- Authors: Aaron Sherman, JJ Merelo, Anton Antonov
### -- File: t/OEIS.rakutest
### ----------------------------------------------------
### -- Chunk 5 of 5
54729075,3715891200,13749310575,81749606400,
 316234143225,1961990553600,7905853580625,
 51011754393600 ],
    A006894 => [ 1,2,4,11,67,2279,2598061,3374961778892,
 5695183504492614029263279,
 16217557574922386301420536972254869595782763547561,
 131504586847961235687181874578063117114329409897615188504091716162522225834932122128288032336298142 ],
    A006966 => [ 1,1,1,1,2,5,15,53,222,1078,5994,37622,262776,
 2018305,16873364,152233518,1471613387,15150569446,
 165269824761,1901910625578 ],
    A007318 => [ 1,1,1,1,2,1,1,3,3,1,1,4,6,4,1,1,5,10,10,5,1,1,6,
 15,20,15,6,1,1,7,21,35,35,21,7,1,1,8,28,56,70,56,
 28,8,1,1,9,36,84,126,126,84,36,9,1,1,10,45,120,
 210,252,210,120,45,10,1,1,11,55,165,330,462,462,
 330,165,55,11,1 ],
    A008275 => [ 1,-1,1,2,-3,1,-6,11,-6,1,24,-50,35,-10,1,-120,
 274,-225,85,-15,1,720,-1764,1624,-735,175,-21,1,
 -5040,13068,-13132,6769,-1960,322,-28,1,40320,
 -109584,118124,-67284,22449,-4536,546,-36,1,
 -362880,1026576 ],
    A008277 => [ 1,1,1,1,3,1,1,7,6,1,1,15,25,10,1,1,31,90,65,15,1,
 1,63,301,350,140,21,1,1,127,966,1701,1050,266,28,
 1,1,255,3025,7770,6951,2646,462,36,1,1,511,9330,
 34105,42525,22827,5880,750,45,1,1,1023,28501,
 145750,246730,179487,63987,11880,1155,55,1 ],
    A008279 => [ 1,1,1,1,2,2,1,3,6,6,1,4,12,24,24,1,5,20,60,120,
 120,1,6,30,120,360,720,720,1,7,42,210,840,2520,
 5040,5040,1,8,56,336,1680,6720,20160,40320,40320,
 1,9,72,504,3024,15120,60480,181440,362880,362880 ],
    A008292 => [ 1,1,1,1,4,1,1,11,11,1,1,26,66,26,1,1,57,302,302,
 57,1,1,120,1191,2416,1191,120,1,1,247,4293,15619,
 15619,4293,247,1,1,502,14608,88234,156190,88234,
 14608,502,1,1,1013,47840,455192,1310354,1310354,
 455192,47840,1013 ],
    A008683 => [ 1,-1,-1,0,-1,1,-1,0,0,1,-1,0,-1,1,1,0,-1,0,-1,0,
 1,1,-1,0,0,1,0,0,-1,-1,-1,0,1,1,1,0,-1,1,1,0,-1,
 -1,-1,0,0,1,-1,0,0,0,1,0,-1,0,1,0,1,1,-1,0,-1,1,0,
 0,1,-1,-1,0,1,-1,-1,0,-1,1,0,0,1 ],
    A010060 => [ 0,1,1,0,1,0,0,1,1,0,0,1,0,1,1,0,1,0,0,1,0,1,1,0,
 0,1,1,0,1,0,0,1,1,0,0,1,0,1,1,0,0,1,1,0,1,0,0,1,0,
 1,1,0,1,0,0,1,1,0,0,1,0,1,1,0,1,0,0,1,0,1,1,0,0,1,
 1,0,1,0,0,1,0,1,1,0,1,0,0,1,1,0,0,1,0,1,1,0,0,1,1,
 0,1,0,0,1,1 ],
    A018252 => [ 1,4,6,8,9,10,12,14,15,16,18,20,21,22,24,25,26,27,
 28,30,32,33,34,35,36,38,39,40,42,44,45,46,48,49,
 50,51,52,54,55,56,57,58,60,62,63,64,65,66,68,69,
 70,72,74,75,76,77,78,80,81,82,84,85,86,87,88 ],
    A020639 => [ 1,2,3,2,5,2,7,2,3,2,11,2,13,2,3,2,17,2,19,2,3,2,
 23,2,5,2,3,2,29,2,31,2,3,2,5,2,37,2,3,2,41,2,43,2,
 3,2,47,2,7,2,3,2,53,2,5,2,3,2,59,2,61,2,3,2,5,2,
 67,2,3,2,71,2,73,2,3,2,7,2,79,2,3,2,83,2,5,2,3,2,
 89,2,7,2,3,2,5,2,97 ],
    A020652 => [ 1,1,2,1,3,1,2,3,4,1,5,1,2,3,4,5,6,1,3,5,7,1,2,4,
 5,7,8,1,3,7,9,1,2,3,4,5,6,7,8,9,10,1,5,7,11,1,2,3,
 4,5,6,7,8,9,10,11,12,1,3,5,9,11,13,1,2,4,7,8,11,
 13,14,1,3,5,7,9,11,13,15,1,2,3,4,5,6,7,8,9,10,11,
 12,13,14,15,16,1,5 ],
    A020653 => [ 1,2,1,3,1,4,3,2,1,5,1,6,5,4,3,2,1,7,5,3,1,8,7,5,
 4,2,1,9,7,3,1,10,9,8,7,6,5,4,3,2,1,11,7,5,1,12,11,
 10,9,8,7,6,5,4,3,2,1,13,11,9,5,3,1,14,13,11,8,7,4,
 2,1,15,13,11,9,7,5,3,1,16,15,14,13,12,11,10,9,8,7,
 6,5,4,3,2,1,17 ],
    A025487 => [ 1,2,4,6,8,12,16,24,30,32,36,48,60,64,72,96,120,
 128,144,180,192,210,216,240,256,288,360,384,420,432,480,512,
 #`{ 576,720,768,840,864,900,960,1024,1080,1152,1260,1296,1440,
 1536,1680,1728,1800,1920,2048,2160,2304,2310 } ],
    A027641 => [ 1,-1,1,0,-1,0,1,0,-1,0,5,0,-691,0,7,0,-3617,0,
 43867,0,-174611,0,854513,0,-236364091,0,8553103,0,
 -23749461029,0,8615841276005,0,-7709321041217,0,
 2577687858367,0,-26315271553053477373,0,
 2929993913841559,0,-261082718496449122051 ],
    A027642 => [ 1,2,6,1,30,1,42,1,30,1,66,1,2730,1,6,1,510,1,798,
 1,330,1,138,1,2730,1,6,1,870,1,14322,1,510,1,6,1,
 1919190,1,6,1,13530,1,1806,1,690,1,282,1,46410,1,
 66,1,1590,1,798,1,870,1,354,1,56786730,1 ],
    A035099 => [ 1,40,276,-2048,11202,-49152,184024,-614400,
 1881471,-5373952,14478180,-37122048,91231550,
 -216072192,495248952,-1102430208,2390434947,
 -5061476352,10487167336,-21301241856,42481784514,
 -83300614144 ],
    A038566 => [ 1,1,1,2,1,3,1,2,3,4,1,5,1,2,3,4,5,6,1,3,5,7,1,2,
 4,5,7,8,1,3,7,9,1,2,3,4,5,6,7,8,9,10,1,5,7,11,1,2,
 3,4,5,6,7,8,9,10,11,12,1,3,5,9,11,13,1,2,4,7,8,11,
 13,14,1,3,5,7,9,11,13,15,1,2,3,4,5,6,7,8,9,10,11,
 12,13,14,15 ],
    A038567 => [ 1,2,3,3,4,4,5,5,5,5,6,6,7,7,7,7,7,7,8,8,8,8,9,9,
 9,9,9,9,10,10,10,10,11,11,11,11,11,11,11,11,11,11,
 12,12,12,12,13,13,13,13,13,13,13,13,13,13,13,13,
 14,14,14,14,14,14,15,15,15,15,15,15,15,15,16,16,
 16,16,16,16 ],
    A038568 => [ 1,1,2,1,3,2,3,1,4,3,4,1,5,2,5,3,5,4,5,1,6,5,6,1,
 7,2,7,3,7,4,7,5,7,6,7,1,8,3,8,5,8,7,8,1,9,2,9,4,9,
 5,9,7,9,8,9,1,10,3,10,7,10,9,10,1,11,2,11,3,11,4,
 11,5,11,6,11,7,11,8,11,9,11,10,11,1,12,5,12,7,12,
 11,12,1,13,2 ],
    A038569 => [ 1,2,1,3,1,3,2,4,1,4,3,5,1,5,2,5,3,5,4,6,1,6,5,7,
 1,7,2,7,3,7,4,7,5,7,6,8,1,8,3,8,5,8,7,9,1,9,2,9,4,
 9,5,9,7,9,8,10,1,10,3,10,7,10,9,11,1,11,2,11,3,11,
 4,11,5,11,6,11,7,11,8,11,9,11,10,12,1,12,5,12,7,
 12,11,13,1,13 ],
    A049310 => [ 1,0,1,-1,0,1,0,-2,0,1,1,0,-3,0,1,0,3,0,-4,0,1,-1,
 0,6,0,-5,0,1,0,-4,0,10,0,-6,0,1,1,0,-10,0,15,0,-7,
 0,1,0,5,0,-20,0,21,0,-8,0,1,-1,0,15,0,-35,0,28,0,
 -9,0,1,0,-6,0,35,0,-56,0,36,0,-10,0,1,1,0,-21,0,
 70,0,-84,0 ],
    A055512 => [ 1,1,2,6,36,380,6390,157962,5396888,243179064,
 13938711210,987858368750,84613071940452,
 8597251494954564,1020353444641839854,
 139627532137612581090,21788453795572514675760,
 3840596246648027262079472,
 758435490711709577216754642 ],
    A070939 => [ 1,1,2,2,3,3,3,3,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,
 5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,
 6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,
 7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,
 7,7,7,7,7,7 ],
    A074206 => [ 0,1,1,1,2,1,3,1,4,2,3,1,8,1,3,3,8,1,8,1,8,3,3,1,
 20,2,3,4,8,1,13,1,16,3,3,3,26,1,3,3,20,1,13,1,8,8,
 3,1,48,2,8,3,8,1,20,3,20,3,3,1,44,1,3,8,32,3,13,1,
 8,3,13,1,76,1,3,8,8,3,13,1,48,8,3,1,44,3,3,3,20,1,
 44,3,8,3,3,3,112 ],
    A104725 => [ 0,1,1,1,2,1,3,1,5,2,3,1,11,1,3,3,15,1,11,1,11,3,
 3,1,45,2,3,5,11,1,19,1,52,3,3,3,62,1,3,3,45,1,19,
 1,11,11,3,1,200,2,11,3,11,1,45,3,45,3,3,1,113,1,3,
 11,203,3,19,1,11,3,19,1,355,1,3,11,11,3,19,1,200,
 15,3,1,113,3 ],
    A226898 => [ 1,2,1,2,1,2,1,2,1,2,1,3,1,2,2,2,1,2,1,3,2,2,1,4,
 1,2,1,2,1,3,1,2,1,2,2,3,1,2,1,4,1,3,1,2,2,2,1,4,1,
 2,1,2,1,2,2,3,1,2,1,4,1,2,2,2,2,2,1,2,1,3,1,4,1,2,
 2,2,2,2,1,4,1,2,1,4,1,2,1,2,1,4,2,2 ],
    A246655 => [ 2,3,4,5,7,8,9,11,13,16,17,19,23,25,27,29,31,32,
 37,41,43,47,49,53,59,61,64,67,71,73,79,81,83,89,
 97,101,103,107,109,113,121,125,127,128,131,137,
 139,149,151,157,163,167,169,173,179,181,191,193,
 197,199,211 ],
;
plan +@core-sequences;

for @core-sequences {
    my $name = .key;
    my $value = .value;

    if %Math::Sequences::Integer::BROKEN{$name}:exists {
        skip "$name: Known broken", 1;
        next;
    }

    for [$value.elems, $value.elems div 3] -> $len is copy {
        constant timeout = 10;
        my $timer = Promise.in(timeout);
        my $test = start {
            is @::($name)[^$len], $value[^$len], $name;
            "complete";
        }
        await Promise.anyof($test, $timer);

        if $timer.status !~~ PromiseStatus::Planned {
            if $len == $value.elems {
                warn "Timeout in $name";
            } else {
                flunk "$name: Timeout";
            }
        } else {
            $test.result;
            last;
        }
    }

    CATCH {
        when ~$_ ~~ rx:s/been defined/ {
            pass "Not yet implemented: $name";
        }
        default {
            flunk ~$_;
        }
    }
}

# The OEIS data used here is reproduced under the following terms:
#
# ...
# 2. The OEIS is made available under the Creative Commons Attribution
# Non-Commercial 3.0 license.
#
# 3. To satisfy the attribution requirements of that license (section 4(c)),
# attributions should credit The Online Encyclopedia of Integer Sequences
# and provide a URL to the main page https://oeis.org/ or to a specific
# sequence (e.g. https://oeis.org/A000108).
#
# 4. Commercial uses may be licensed by special arrangement with the OEIS
# Foundation Inc..

# vim: expandtab shiftwidth=4


