2013-02-21 13:22:31 -08:00
|
|
|
#!/usr/bin/env perl
|
|
|
|
|
|
|
|
use strict;
|
|
|
|
use warnings;
|
|
|
|
use Test::More;
|
|
|
|
use DDG::Test::Goodie;
|
2013-02-26 14:06:41 -08:00
|
|
|
use Date::Hijri;
|
2013-02-21 13:22:31 -08:00
|
|
|
|
|
|
|
zci answer_type => 'date';
|
|
|
|
zci is_cached => 0;
|
|
|
|
|
|
|
|
ddg_goodie_test(
|
|
|
|
[qw(
|
|
|
|
DDG::Goodie::Hijri
|
|
|
|
)],
|
2013-02-26 14:06:41 -08:00
|
|
|
'22/8/2003 to hijri date' => test_zci('23/6/1424'),
|
|
|
|
'23/6/1424 to gregorian years' => test_zci('22/8/2003'),
|
|
|
|
'22,8,2003 to hijri' => test_zci('23/6/1424'),
|
2013-02-21 13:22:31 -08:00
|
|
|
);
|
|
|
|
|
|
|
|
done_testing;
|