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.139 tracks/perl5/exercises/gigasecond/gigasecond.t
trackler-2.2.1.138 tracks/perl5/exercises/gigasecond/gigasecond.t
trackler-2.2.1.137 tracks/perl5/exercises/gigasecond/gigasecond.t
trackler-2.2.1.136 tracks/perl5/exercises/gigasecond/gigasecond.t
trackler-2.2.1.135 tracks/perl5/exercises/gigasecond/gigasecond.t
trackler-2.2.1.134 tracks/perl5/exercises/gigasecond/gigasecond.t
trackler-2.2.1.133 tracks/perl5/exercises/gigasecond/gigasecond.t
trackler-2.2.1.132 tracks/perl5/exercises/gigasecond/gigasecond.t
trackler-2.2.1.131 tracks/perl5/exercises/gigasecond/gigasecond.t
trackler-2.2.1.130 tracks/perl5/exercises/gigasecond/gigasecond.t
trackler-2.2.1.129 tracks/perl5/exercises/gigasecond/gigasecond.t
trackler-2.2.1.128 tracks/perl5/exercises/gigasecond/gigasecond.t
trackler-2.2.1.127 tracks/perl5/exercises/gigasecond/gigasecond.t
trackler-2.2.1.126 tracks/perl5/exercises/gigasecond/gigasecond.t
trackler-2.2.1.125 tracks/perl5/exercises/gigasecond/gigasecond.t
trackler-2.2.1.124 tracks/perl5/exercises/gigasecond/gigasecond.t
trackler-2.2.1.123 tracks/perl5/exercises/gigasecond/gigasecond.t
trackler-2.2.1.122 tracks/perl5/exercises/gigasecond/gigasecond.t
trackler-2.2.1.121 tracks/perl5/exercises/gigasecond/gigasecond.t
trackler-2.2.1.120 tracks/perl5/exercises/gigasecond/gigasecond.t