/[pxelator]/lib/PXElator/t/once.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

Contents of /lib/PXElator/t/once.t

Parent Directory Parent Directory | Revision Log Revision Log


Revision 276 - (show annotations)
Thu Aug 20 17:36:17 2009 UTC (14 years, 9 months ago) by dpavlin
File MIME type: application/x-troff
File size: 249 byte(s)
extracted first_time into once package
1 #!/usr/bin/perl
2
3 use warnings;
4 use strict;
5 use autodie;
6
7 use Test::More tests => 4;
8
9 use_ok 'once';
10
11 ok( my $rand = rand(), 'rand' );
12 ok( once::first_time("test-$rand"), 'first_time' );
13 ok( ! once::first_time("test-$rand"), 'first_time again' );
14

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26