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

use strict;
use warnings;
use Test::More;
use DDG::Test::Spice;

my %q = (
  "coupons for nordstrom" => "nordstrom",
  "dell discount codes"   => "dell",
  "coupons subway"        => "subway",
);

ddg_spice_test(
  [qw( DDG::Spice::CouponMountain)],
  map {
    $_ => test_spice('/js/spice/coupon_mountain/'.$q{$_},	caller => 'DDG::Spice::CouponMountain')
  } keys %q,
);
<commit_msg>Added tests for example queries for DDG::Spice::CouponMountain.<commit_after>#!/usr/bin/env perl

use strict;
use warnings;
use Test::More;
use DDG::Test::Spice;

my %q = (
  "coupons for nordstrom" => "nordstrom",
  "dell discount codes"   => "dell",
  "coupons subway"        => "subway",
  'hp coupon'             => 'hp',
  'hp promo codes'        => 'hp',
);

ddg_spice_test(
  [qw( DDG::Spice::CouponMountain)],
  map {
    $_ => test_spice('/js/spice/coupon_mountain/'.$q{$_},	caller => 'DDG::Spice::CouponMountain')
  } keys %q,
);

{'fraction_non_alphanumeric': 0.196875, 'fraction_numerical': 0.0, 'mean_word_length': 3.805, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 15, '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': '7276447', 'n_tokens_mistral': 411, 'n_tokens_neox': 404, 'n_words': 77}