develooper Front page | perl.perl5.porters | Postings from April 2008

[PATCH] testing $/ with in memory files

Thread Next
From:
Bram
Date:
April 27, 2008 14:49
Subject:
[PATCH] testing $/ with in memory files
Message ID:
20080427234842.ahvjzrbiio8c04ks@horde.wizbit.be
Inspired by: http://rt.perl.org/rt3/Public/Bug/Display.html?id=44833  
(fixed somewhere between 5.8.7 and 5.8.8)

But I don't think test were added for it.
Attached is a patch for t/base/rs.t. (I hope this is the correct file  
to test it...)

What is changed:

a) a test counter is used instead of constants,
b) the test output is made more descriptive
c) the tests get repeated for an in memory file (this meant moving the  
test code in two separate subroutines -  and changing the filehandle  
(not absolutly required tho))

(I'm not entirely sure about the name I gave the subs... so feel free  
to change it into something better.)


Kind regards,

Bram


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About