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
2013-04-07 17:56:31 -07:00
zci answer_type = > 'conversion' ;
2013-02-21 13:22:31 -08:00
zci is_cached = > 0 ;
ddg_goodie_test (
2013-12-23 12:49:01 -08:00
[ qw( DDG::Goodie::Hijri ) ] ,
'22/8/2003 to hijri' = > test_zci (
'22/8/2003 on the Gregorian calendar is 23/6/1424 on the Hijri calendar.' ,
html = > '22/8/2003 on the '
. '<a href="https://en.wikipedia.org/wiki/Gregorian_calendar">Gregorian calendar</a> '
. 'is 23/6/1424 on the '
. '<a href="https://en.wikipedia.org/wiki/Hijri_calendar">Hijri calendar</a>.'
2013-04-07 17:46:30 -07:00
) ,
2013-12-23 12:49:01 -08:00
'22/8/2003 to the hijri calendar' = > test_zci (
'22/8/2003 on the Gregorian calendar is 23/6/1424 on the Hijri calendar.' ,
html = > '22/8/2003 on the '
. '<a href="https://en.wikipedia.org/wiki/Gregorian_calendar">Gregorian calendar</a> '
. 'is 23/6/1424 on the '
. '<a href="https://en.wikipedia.org/wiki/Hijri_calendar">Hijri calendar</a>.'
2013-04-06 15:34:22 -07:00
) ,
'22,8,2003 to hijri' = > test_zci (
2013-12-23 12:49:01 -08:00
'22/8/2003 on the Gregorian calendar is 23/6/1424 on the Hijri calendar.' ,
html = > '22/8/2003 on the '
. '<a href="https://en.wikipedia.org/wiki/Gregorian_calendar">Gregorian calendar</a> '
. 'is 23/6/1424 on the '
. '<a href="https://en.wikipedia.org/wiki/Hijri_calendar">Hijri calendar</a>.'
2013-04-06 15:34:22 -07:00
) ,
'23/6/1424 to gregorian years' = > test_zci (
2013-12-23 12:49:01 -08:00
'23/6/1424 on the Hijri calendar is 22/8/2003 on the Gregorian calendar.' ,
html = > '23/6/1424 on the '
. '<a href="https://en.wikipedia.org/wiki/Hijri_calendar">Hijri calendar</a> '
. 'is 22/8/2003 on the '
. '<a href="https://en.wikipedia.org/wiki/Gregorian_calendar">Gregorian calendar</a>.'
2013-04-06 15:34:22 -07:00
) ,
2014-02-10 13:24:52 -08:00
'23/6/1424 to gregorian' = > test_zci (
'23/6/1424 on the Hijri calendar is 22/8/2003 on the Gregorian calendar.' ,
html = > '23/6/1424 on the <a href="https://en.wikipedia.org/wiki/Hijri_calendar">Hijri calendar</a> is 22/8/2003 on the <a href="https://en.wikipedia.org/wiki/Gregorian_calendar">Gregorian calendar</a>.'
) ,
2013-02-21 13:22:31 -08:00
) ;
done_testing ;