Sha256: 38c8ae4116f5a35fef19cb70b2bdd4474d38b8260cbc10c869bc9d9febc37390

Contents?: true

Size: 600 Bytes

Versions: 73

Compression:

Stored size: 600 Bytes

Contents

#!/usr/bin/env perl
use warnings;
use strict;

use DateTime;
use Test::More tests => 4;
use FindBin;
my $dir;
BEGIN { $dir = $FindBin::Bin . '/' };
use lib $dir;

my $module = 'Gigasecond';

use_ok($module) or BAIL_OUT "You need to create a module called $module.pm";

sub gs_new {
  no strict 'refs';
  $module->new(@_);
}

is gs_new(2011, 4, 25)->date, DateTime->new(year => 2043, month => 1, day => 1), 'test 1';
is gs_new(1977, 6, 13)->date, DateTime->new(year => 2009, month => 2, day => 19), 'test 2';
is gs_new(1959, 7, 19)->date, DateTime->new(year => 1991, month => 3, day => 27), 'test 3';

Version data entries

73 entries across 73 versions & 1 rubygems

Version Path
trackler-2.2.1.159 tracks/perl5/exercises/gigasecond/gigasecond.t
trackler-2.2.1.158 tracks/perl5/exercises/gigasecond/gigasecond.t
trackler-2.2.1.157 tracks/perl5/exercises/gigasecond/gigasecond.t
trackler-2.2.1.156 tracks/perl5/exercises/gigasecond/gigasecond.t
trackler-2.2.1.155 tracks/perl5/exercises/gigasecond/gigasecond.t
trackler-2.2.1.154 tracks/perl5/exercises/gigasecond/gigasecond.t
trackler-2.2.1.153 tracks/perl5/exercises/gigasecond/gigasecond.t
trackler-2.2.1.152 tracks/perl5/exercises/gigasecond/gigasecond.t
trackler-2.2.1.151 tracks/perl5/exercises/gigasecond/gigasecond.t
trackler-2.2.1.150 tracks/perl5/exercises/gigasecond/gigasecond.t
trackler-2.2.1.149 tracks/perl5/exercises/gigasecond/gigasecond.t
trackler-2.2.1.148 tracks/perl5/exercises/gigasecond/gigasecond.t
trackler-2.2.1.147 tracks/perl5/exercises/gigasecond/gigasecond.t
trackler-2.2.1.146 tracks/perl5/exercises/gigasecond/gigasecond.t
trackler-2.2.1.145 tracks/perl5/exercises/gigasecond/gigasecond.t
trackler-2.2.1.144 tracks/perl5/exercises/gigasecond/gigasecond.t
trackler-2.2.1.143 tracks/perl5/exercises/gigasecond/gigasecond.t
trackler-2.2.1.142 tracks/perl5/exercises/gigasecond/gigasecond.t
trackler-2.2.1.141 tracks/perl5/exercises/gigasecond/gigasecond.t
trackler-2.2.1.140 tracks/perl5/exercises/gigasecond/gigasecond.t