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