/[suikacvs]/perl/charclass/t/perlbug.t
Suika

Contents of /perl/charclass/t/perlbug.t

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download) (as text)
Thu Jul 19 13:26:22 2007 UTC (17 years, 4 months ago) by wakaba
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +3 -3 lines
File MIME type: application/x-troff
Error occurred while calculating annotation data.
++ ChangeLog	19 Jul 2007 13:21:24 -0000
2007-07-19  Wakaba  <wakaba@suika.fam.cx>

	* Makefile.PL: Updated.

	* readme.en.html: New document.

	* .htaccess: New file.

	* release/: New directory.

	* MANIFEST.SKIP: New file.

	* cvscommit.sh: New file.

++ charclass/lib/Char/Class/ChangeLog	19 Jul 2007 13:26:07 -0000
2007-07-19  Wakaba  <wakaba@suika.fam.cx>

	* JISX0221-src.upl (SEE ALSO): Links to |Char::Class::UCS|
	and |Char::Class::RFC1815| are added.

	* Makefile (%.html): New rule.
	(all): Make HTML files.
	(MODULES): |JaInput.pm| was missing.
	(clean): Call |clean-pod|.  Don't delete generated Perl modules.
	(clean-pod): New rule.
	(distclean): New.  (Note that the rule name is incorrect!)

	* RFC1815-src.upl (SEE ALSO): Links to |Char::Class::UCS|
	and |Char::Class::JISX0221| are added.

	* UCS-src.upl (SEE ALSO): Links to |Char::Class::JISX0221|
	and |Char::Class::RFC1815| are added.

	* mkpm.pl (generated pod's NAME): Was generated with a bad style.
	(generated pod's COLLECTION NAMES): |=back| was missing.
	(generated pod's EXAMPLE): Use a real class name.  Note that
	this does not work for e.g. Kana.

++ charclass/t/ChangeLog	19 Jul 2007 11:57:39 -0000
2007-07-19  Wakaba  <wakaba@suika.fam.cx>

	* perlbug.t: Number of tests were wrong.

1 use strict;
2 ## Check whether perl is buggy or not
3 require Test::Simple;
4 my $case = 0;
5
6 my $err;
7
8 my @test = (
9 sub {
10 my $s = 'NAME';
11 ok (scalar ($s =~ /\p{InBasicLatin}/), '\p support of perl');
12 ok (scalar ($s =~ /\p{InBasicLatin}+/), '\p+ support of perl');
13 ok (scalar ($s =~ /^\p{InBasicLatin}+$/), '^\p+$ support of perl');
14 ## perl 5.8.0 has bug??
15 ok (scalar ($s =~ /^\p{InBasicLatin}\p{InBasicLatin}+$/), '^\p\p+$ support of perl');
16 ok (scalar ($s =~ /^\p{InBasicLatin}\p{InBasicLatin}*$/), '^\p\p*$ support of perl');
17 },1..4,
18 sub {
19 package foo;
20 my $s = 'NAME';
21 main::ok (scalar ($s =~ /\p{InBasicLatin}/), 'NSed \p support of perl');
22 main::ok (scalar ($s =~ /\p{InBasicLatin}+/), 'NSed \p+ support of perl');
23 main::ok (scalar ($s =~ /^\p{InBasicLatin}+$/), 'NSed ^\p+$ support of perl');
24 main::ok (scalar ($s =~ /^\p{InBasicLatin}\p{InBasicLatin}+$/), 'NSed ^\p\p+$ support of perl');
25 main::ok (scalar ($s =~ /^\p{InBasicLatin}\p{InBasicLatin}*$/), 'NSed ^\p\p*$ support of perl');
26 }, 1..4,
27 );
28 $case += @test;
29 $case += @test;
30
31 Test::Simple->import (tests => $case);
32
33 for (1,2) {
34 for (@test) {&$_ if ref $_}
35 }
36
37 exit;
38 /\p{InUndefinedSet}/;
39 ## Older perl (such as 5.6.1) cannot run if undefined
40 ## (not defined by perl nor provided by "use"ed module) character class
41 ## is in use.
42
43 =head1 LICENSE
44
45 Copyright 2003, 2007 Wakaba <w@suika.fam.cx>
46
47 This program is free software; you can redistribute it and/or
48 modify it under the same terms as Perl itself.
49
50 =cut
51
52 1; # $Date: 2004/02/14 11:27:44 $

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24