source: vendor/perl/5.8.8/lib/FileCache/t/04twoarg.t@ 3181

Last change on this file since 3181 was 3181, checked in by bird, 19 years ago

perl 5.8.8

File size: 477 bytes
Line 
1#!./perl
2BEGIN {
3 use FileCache;
4 chdir 't' if -d 't';
5
6 #For tests within the perl distribution
7 @INC = '../lib' if -d '../lib';
8 END;
9}
10END{
11 unlink('foo');
12}
13
14print "1..1\n";
15
16{# Test 4: that 2 arg format works, and that we cycle on mode change
17 cacheout '>', "foo";
18 print foo "foo 4\n";
19 cacheout '+>', "foo";
20 print foo "foo 44\n";
21 seek(foo, 0, 0);
22 print 'not ' unless <foo> eq "foo 44\n";
23 print "ok 1\n";
24 close foo;
25}
Note: See TracBrowser for help on using the repository browser.