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.180 tracks/perl5/exercises/gigasecond/gigasecond.t
trackler-2.2.1.179 tracks/perl5/exercises/gigasecond/gigasecond.t
trackler-2.2.1.178 tracks/perl5/exercises/gigasecond/gigasecond.t
trackler-2.2.1.177 tracks/perl5/exercises/gigasecond/gigasecond.t
trackler-2.2.1.176 tracks/perl5/exercises/gigasecond/gigasecond.t
trackler-2.2.1.175 tracks/perl5/exercises/gigasecond/gigasecond.t
trackler-2.2.1.174 tracks/perl5/exercises/gigasecond/gigasecond.t
trackler-2.2.1.173 tracks/perl5/exercises/gigasecond/gigasecond.t
trackler-2.2.1.172 tracks/perl5/exercises/gigasecond/gigasecond.t
trackler-2.2.1.171 tracks/perl5/exercises/gigasecond/gigasecond.t
trackler-2.2.1.170 tracks/perl5/exercises/gigasecond/gigasecond.t
trackler-2.2.1.169 tracks/perl5/exercises/gigasecond/gigasecond.t
trackler-2.2.1.167 tracks/perl5/exercises/gigasecond/gigasecond.t
trackler-2.2.1.166 tracks/perl5/exercises/gigasecond/gigasecond.t
trackler-2.2.1.165 tracks/perl5/exercises/gigasecond/gigasecond.t
trackler-2.2.1.164 tracks/perl5/exercises/gigasecond/gigasecond.t
trackler-2.2.1.163 tracks/perl5/exercises/gigasecond/gigasecond.t
trackler-2.2.1.162 tracks/perl5/exercises/gigasecond/gigasecond.t
trackler-2.2.1.161 tracks/perl5/exercises/gigasecond/gigasecond.t
trackler-2.2.1.160 tracks/perl5/exercises/gigasecond/gigasecond.t