develooper Front page | perl.perl5.porters | Postings from January 2010

Re: How to add tests for Normalize.pm?

Thread Previous | Thread Next
From:
Karl Williamson
Date:
January 18, 2010 13:01
Subject:
Re: How to add tests for Normalize.pm?
Message ID:
4B54CC1D.1000403@khwilliamson.com
Nicholas Clark wrote:
> [snip]
> 
> (The answer to the obvious next question is "no" - there isn't a defined way
> to feed the changes back. And I might be stating the obvious, but changes need
> to work on Perl versions as far back as Unicode::Normalize currently supports)
>

I planned to deliver the official Unicode (current version 5.2) 
NormalizationTest.txt file into lib/unicore, where all the other 
official Unicode consortium files are.  I then planned to deliver 
somewhere the .t file I have written that reads NormalizationTest.txt as 
input and converts all its tests to TAP style.

There would be no code changes involved to the current Normalize 
package.  But if this were to be added to that package, it would break 
things on older Perls, since they don't have the respective 
NormalizationTest.txt file for the version of Unicode they are shipped 
with.  And including the 5.2 .txt file wouldn't work as it is different 
for each Unicode version.

Thus this test couldn't be part of Unicode::Normalize, but would be 
something that is added to MANIFEST and would be run as part of 'make test'.

Correct me if I'm wrong.

Thread Previous | 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