Almost-minimal filesystem based blog.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

25 lines
421 B

#!/usr/bin/env perl
use strict;
use warnings;
use lib 'lib';
use Test::More tests => 4;
require_ok('App::WRT::Date');
ok(
App::WRT::Date::get_mtime('t/wrt.t') =~ m/\d+/,
'get_mtime on a real file returns digits.'
);
my $iso_date = App::WRT::Date::iso_date(0);
ok(
$iso_date eq '1969-12-31T17:00:00Z',
'ISO date for epoch'
);
ok(
App::WRT::Date::month_name(1) eq 'January',
'month_name(1) is January'
);