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.

22 lines
353 B

  1. #!/usr/bin/perl
  2. use strict;
  3. use warnings;
  4. use lib 'lib';
  5. use Test::Simple tests => 2;
  6. use App::WRT::Util qw(get_date);
  7. my $year = get_date('year') + 1900;
  8. ok(
  9. ($year =~ /^[0-9]+$/) && ($year > 1900),
  10. 'sure looks like a year'
  11. );
  12. my (@values) = get_date('wday', 'yday', 'mon');
  13. my $length = @values;
  14. ok($length == 3, 'got multiple values');
  15. 1;