diff options
| author | Lubos Kolouch <lubos@kolouch.net> | 2020-08-16 13:40:10 +0200 |
|---|---|---|
| committer | Lubos Kolouch <lubos@kolouch.net> | 2020-08-16 13:40:10 +0200 |
| commit | 3bf5fe8273a629030acc4c819c3f7b7313c7ef44 (patch) | |
| tree | be46651f1888c220da8dfb7266f8d3ec32850bd7 | |
| parent | d8c83072f436c41f64d2a0c4da6fed0b1a986251 (diff) | |
| download | perlweeklychallenge-club-3bf5fe8273a629030acc4c819c3f7b7313c7ef44.tar.gz perlweeklychallenge-club-3bf5fe8273a629030acc4c819c3f7b7313c7ef44.tar.bz2 perlweeklychallenge-club-3bf5fe8273a629030acc4c819c3f7b7313c7ef44.zip | |
Fix sub name to min_window
| -rw-r--r-- | challenge-073/lubos-kolouch/perl/ch-1.pl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/challenge-073/lubos-kolouch/perl/ch-1.pl b/challenge-073/lubos-kolouch/perl/ch-1.pl index d8dbbf3c7b..5cf94156c6 100644 --- a/challenge-073/lubos-kolouch/perl/ch-1.pl +++ b/challenge-073/lubos-kolouch/perl/ch-1.pl @@ -25,7 +25,7 @@ use strict; use warnings; use List::Util qw/min/; -sub compare_versions { +sub min_window { my ($a_ref, $s) = @_; my @return_array; @@ -48,7 +48,7 @@ sub compare_versions { use Test::More; -is_deeply(\compare_versions([1, 5, 0, 2, 9, 3, 7, 6, 4, 8],3),\[0,0,0,2,3,3,4]); -is_deeply(\compare_versions([1, 2, 3],4),\[1]); +is_deeply(\min_window([1, 5, 0, 2, 9, 3, 7, 6, 4, 8],3),\[0,0,0,2,3,3,4]); +is_deeply(\min_window([1, 2, 3],4),\[1]); done_testing; |
