Skip to content
This repository has been archived by the owner on Oct 15, 2022. It is now read-only.

Commit

Permalink
Added test file
Browse files Browse the repository at this point in the history
  • Loading branch information
mattlehning committed Jan 27, 2013
1 parent 5796303 commit 3d32662
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions t/Coin.t
@@ -0,0 +1,21 @@
#!/usr/bin/env perl

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

zci answer_type => 'coin';
zci is_cached => 0;

ddg_goodie_test(
[qw(
DDG::Goodie::Coin
)],
'flip a coin' => test_zci(qr/(heads|tails)/),
'flip 1 coin' => test_zci(qr/(heads|tails)/),
'flip 2 coins' => test_zci(qr/(heads|tails) (heads|tails)/),
);

done_testing;

0 comments on commit 3d32662

Please sign in to comment.