This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
XS-APItest/t/handy.t: Refactor
authorKarl Williamson <public@khwilliamson.com>
Mon, 19 Nov 2012 16:58:12 +0000 (09:58 -0700)
committerKarl Williamson <public@khwilliamson.com>
Tue, 20 Nov 2012 00:13:01 +0000 (17:13 -0700)
commite2efe4195e4b1c9edf934737f4f1b2a6a8873af5
treedcc69f17f56432978a52bac9a0e8b35a523a048c
parentde13b7b164bf1b8c269a3d0d53476a11d79ebf7c
XS-APItest/t/handy.t: Refactor

This takes advantage of the Unicode::UCD::prop_invlist() function,
introduced in 5.16, to replace the hard-coded tables of Unicode values
previously used  (and also relying on recent fixes to an undocumented
function from that module ).  It als changes to give better messages if
the evals fail.  Using prop_invlist() allows us to easily extend to all
tests testing of some non-Latin1 code points.
ext/XS-APItest/t/handy.t