Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Test-File CPAN distribution.

Report information
The Basics
Id: 4538
Status: resolved
Worked: 10 min
Priority: 0/
Queue: Test-File

People
Owner: bdfoy [...] cpan.org
Requestors: MARKSTOS [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.05
Fixed in: (no value)



Subject: size tests need units
Thanks for Test::File. I just discovered it and am finding it useful. The docs are slightly broken in that the size related tests don't specify which units to use.
From: mark
I see from the code that the size is in bytes. Here's a doc patch: --- /usr/local/lib/perl5/site_perl/5.8.0/Test/File.pm Mon Sep 23 14:02:00 2002 +++ test_file.txt Mon Dec 1 16:49:31 2003 @@ -154,6 +154,8 @@ Ok if the file exists and has SIZE size (exactly), not ok if the file does not exist or exists with size other than SIZE. +SIZE is in bytes. + =cut @@ -189,6 +191,7 @@ Ok if the file exists and has size less than or equal to MAX, not ok if the file does not exist or exists with size greater than MAX. +MAX is in bytes. =cut @@ -224,6 +227,7 @@ Ok if the file exists and has size greater than or equal to MIN, not ok if the file does not exist or exists with size less than MIN. +MIN is in bytes. =cut
Thanks for the doc patch. I will add it to the next update. I'm stuck overseas at the moment so that might be a while.