/[Time-Available]/t/test.t
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Annotation of /t/test.t

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.1.1 - (hide annotations) (vendor branch)
Fri Oct 3 14:19:50 2003 UTC (20 years, 7 months ago) by dpavlin
Branch: DbP
CVS Tags: r0
Changes since 1.1: +0 -0 lines
File MIME type: application/x-troff
initial CVS import. not tested. If it breaks, you get to keep both peaces.

1 dpavlin 1.1 #!/usr/bin/perl
2    
3     use Test::Simple tests => 3;
4    
5     use Time::Available qw(:days);
6    
7     my $i = Time::Available->new( start=>'07', end=>'17:15', dayMask=>DAY_WEEKDAY );
8     ok( defined($i) , 'new() work');
9    
10     ok( defined($i->{start}) && $i->{start} == 7*60*60, 'start time ok' );
11     ok( defined($i->{end}) && $i->{end} == ((17*60)+15)*60, 'end time ok' );
12    
13     print $i->uptime(localtime),"\n";

  ViewVC Help
Powered by ViewVC 1.1.26