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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 410 - (hide annotations)
Wed Sep 9 10:48:59 2009 UTC (14 years, 8 months ago) by dpavlin
File MIME type: application/x-troff
File size: 296 byte(s)
split tie scalar into package ties
(which should be called kravata in Croatian :-)

1 dpavlin 410 #!/usr/bin/perl
2    
3     use warnings;
4     use strict;
5     use autodie;
6    
7     use Test::More tests => 5;
8    
9     use_ok 'ties';
10    
11     tie my $test, 'ties', 'test', 42;
12     ok( $test, 'tie' );
13     cmp_ok( $test, '==', 42, 'get' );
14    
15     ok( $test = 'foobar', 'set' );
16     cmp_ok( $test, 'eq', 'foobar', 'get' );
17    
18     unlink "/srv/pxelator/conf/test";

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26