- Timestamp:
- 09/09/07 12:57:55 (16 months ago)
- Location:
- ext/File-Util/t
- Files:
-
- 2 modified
-
03.dirs.t (modified) (1 diff)
-
05.methods.t (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
ext/File-Util/t/03.dirs.t
r15872 r17728 9 9 my $f = File::Util.new; 10 10 11 my @files = $f.list_dir(' t');11 my @files = $f.list_dir('ext/File-Util/t'); 12 12 13 ok( @files ); -
ext/File-Util/t/05.methods.t
r15872 r17728 9 9 my $f = File::Util.new; 10 10 11 $f.existent(' t/01.use.t');11 $f.existent('ext/File-Util/t/01.use.t'); 12 12 is($f.exist, 1, "File exist"); 13 $f.existent(' t/01.t');13 $f.existent('ext/File-Util/t/01.t'); 14 14 is($f.exist, undef, "File doesn't exist"); 15 15 16 $f.size(' t/01.use.t');16 $f.size('ext/File-Util/t/01.use.t'); 17 17 is(!$f.fsize, undef, "File size is not 0"); 18 18 19 $f.size(' t/01.t');19 $f.size('ext/File-Util/t/01.t'); 20 20 is($f.fsize, undef, "File size is 0"); 21 21 22 $f.can_read(' t/01.use.t');22 $f.can_read('ext/File-Util/t/01.use.t'); 23 23 is($f.canread, 1, "Can read file"); 24 24 25 $f.can_write(' t/01.use.t');25 $f.can_write('ext/File-Util/t/01.use.t'); 26 26 is($f.canwrite, 1, "Can write file"); 27 27 28 $f.can_read(' t/01.t');28 $f.can_read('ext/File-Util/t/01.t'); 29 29 is($f.canread, undef, "Can read file"); 30 30 31 $f.can_write(' t/01.t');31 $f.can_write('ext/File-Util/t/01.t'); 32 32 is($f.canwrite, undef, "Can write file"); 33 33 34 $f.line_count(' t/01.use.t');34 $f.line_count('ext/File-Util/t/01.use.t'); 35 35 is($f.lines, 14, "Count lines");
