zeroclickinfo-goodies/t/Passphrase.t
Dylan Lloyd 3fdbe37cb1 rm'd old example files,new tests for those missing
also stripped carriage returns and trailing whitespace from share files
2013-02-07 20:26:39 -05:00

21 lines
470 B
Perl

#!/usr/bin/env perl
use strict;
use warnings;
use Test::More;
use DDG::Test::Goodie;
zci answer_type => 'passphrase';
zci is_cached => 0;
ddg_goodie_test(
[qw(
DDG::Goodie::Passphrase
)],
'passphrase 1 word' => test_zci(qr/random passphrase: ([a-z]+)/),
'passphrase 2 word' => test_zci(qr/random passphrase: ([a-z]+){2}/),
'passphrase 3 words' => test_zci(qr/random passphrase: ([a-z]+){3}/),
);
done_testing;