<commit_before>#!/usr/bin/env perl

use strict;
use warnings;
use Test::More;
use Test::Deep;
use DDG::Test::Goodie;

zci answer_type => 'parcelforce';
zci is_cached   => 1;

ddg_goodie_test(
    [qw( DDG::Goodie::Parcelforce )],
    'parcelforce track PBTM8041434001' => test_zci(
        "PBTM8041434001",
        heading => 'Parcelforce Tracking',
        html =>
            qq(Track this parcel at <a href="http://www.parcelforce.com/track-trace?trackNumber=PBTM8041434001">Parcelforce</a>.)
    ),
    'royal mail track parcel QE001331410GB' => test_zci(
        "QE001331410GB",
        heading => 'Parcelforce Tracking',
        html =>
            qq(Track this parcel at <a href="http://www.parcelforce.com/track-trace?trackNumber=QE001331410GB">Parcelforce</a>.)
    ),
    'track PBTM8237263001' => test_zci(
        "PBTM8237263001",
        heading => 'Parcelforce Tracking',
        html =>
            qq(Track this parcel at <a href="http://www.parcelforce.com/track-trace?trackNumber=PBTM8237263001">Parcelforce</a>.)
    )
);

done_testing;<commit_msg>ParcelForce: Adding failing test for keen triggering<commit_after>#!/usr/bin/env perl

use strict;
use warnings;
use Test::More;
use Test::Deep;
use DDG::Test::Goodie;

zci answer_type => 'parcelforce';
zci is_cached   => 1;

ddg_goodie_test(
    [qw( DDG::Goodie::Parcelforce )],
    'parcelforce track PBTM8041434001' => test_zci(
        "PBTM8041434001",
        heading => 'Parcelforce Tracking',
        html =>
            qq(Track this parcel at <a href="http://www.parcelforce.com/track-trace?trackNumber=PBTM8041434001">Parcelforce</a>.)
    ),
    'royal mail track parcel QE001331410GB' => test_zci(
        "QE001331410GB",
        heading => 'Parcelforce Tracking',
        html =>
            qq(Track this parcel at <a href="http://www.parcelforce.com/track-trace?trackNumber=QE001331410GB">Parcelforce</a>.)
    ),
    'track PBTM8237263001' => test_zci(
        "PBTM8237263001",
        heading => 'Parcelforce Tracking',
        html =>
            qq(Track this parcel at <a href="http://www.parcelforce.com/track-trace?trackNumber=PBTM8237263001">Parcelforce</a>.)
    ),
    'luhn 1234554651' => undef
);

done_testing;
{'fraction_non_alphanumeric': 0.14008133755083596, 'fraction_numerical': 0.08404880253050158, 'mean_word_length': 3.2658959537572256, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 38, 'https://': 0, 'lorem ipsum': 0, 'www.': 6, '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': '6368405', 'n_tokens_mistral': 977, 'n_tokens_neox': 817, 'n_words': 144}