1
0
Fork 0
mirror of https://github.com/perlbot/perlbuut synced 2025-06-07 10:45:40 -04:00
perlbuut/t/oeis-plugin.t
Shlomi Fish a1f08b1315 Add a test for the oeis plugin.
In the process I extracted a function.
2020-10-30 12:09:36 +02:00

15 lines
242 B
Perl

#!/usr/bin/env perl
use strict;
use warnings;
use utf8;
use Test::More tests => 1;
use lib '.';
use plugins::oeis;
# TEST
like(
(query_oeis("1,2,6,24"))[1][0],
qr#https?://oeis\.org/.*?Factorial numbers: n!#ms,
"factorials",
);