<commit_before><commit_msg>Add test for extension filter<commit_after>use strict;
use warnings;

use Test::More tests => 2;

use_ok 'App::Ack::Filter::Extension';

my @test_files = (
    'test.pl',
    'test.pod',
    't/filter.t',
    'foo',
    'testpl',
    'test.txt',
);

my $filter = eval {
    App::Ack::Filter->create_filter('ext', 'pl', 'pod', 't');
};

ok $filter, 'creating an "ext" filter should succeed';

my @matches = $filter->filter(@test_files);

is_deeply @matches, [
    'test.pl',
    'test.pod',
    't/filter.t',
];
{'fraction_non_alphanumeric': 0.20297951582867785, 'fraction_numerical': 0.00186219739292365, 'mean_word_length': 3.7610619469026547, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3046215', 'n_tokens_mistral': 206, 'n_tokens_neox': 202, 'n_words': 45}