summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2018-08-06 16:37:32 -0600
committerKarl Williamson <khw@cpan.org>2018-08-20 10:51:56 -0600
commit3b9fb37400e38d82b5690e90461199c0fab75d8f (patch)
tree56374ea52b653e04d64ca6331135063b7e50d58f /t
parent2a4bf710d5d230746ef6ca1e7a12f43531b31002 (diff)
downloadperl-3b9fb37400e38d82b5690e90461199c0fab75d8f.tar.gz
t/re/regexp_unicode_prop.t: White-space only
Indent some lines that a future commit will surround with a block, and outdent others where a block will be removed
Diffstat (limited to 't')
-rw-r--r--t/re/regexp_unicode_prop.t78
1 files changed, 39 insertions, 39 deletions
diff --git a/t/re/regexp_unicode_prop.t b/t/re/regexp_unicode_prop.t
index 5fbcf2fe59..4fba2ea50e 100644
--- a/t/re/regexp_unicode_prop.t
+++ b/t/re/regexp_unicode_prop.t
@@ -81,37 +81,37 @@ my @CLASSES = (
);
-my @USER_DEFINED_PROPERTIES = (
- #
- # User defined properties
- #
- InKana1 => ['\x{3040}', '!\x{303F}'],
- InKana2 => ['\x{3040}', '!\x{303F}'],
- InKana3 => ['\x{3041}', '!\x{3040}'],
- InNotKana => ['\x{3040}', '!\x{3041}'],
- InConsonant => ['d', '!e'],
- IsSyriac1 => ['\x{0712}', '!\x{072F}'],
- IsSyriac1KanaMark => ['\x{309A}', '!\x{3090}'],
- IsSyriac1KanaMark => ['\x{0730}', '!\x{0712}'],
- '# User-defined character properties may lack \n at the end',
- InGreekSmall => ['\N{GREEK SMALL LETTER PI}',
- '\N{GREEK SMALL LETTER FINAL SIGMA}'],
- InGreekCapital => ['\N{GREEK CAPITAL LETTER PI}', '!\x{03A2}'],
- Dash => ['-'],
- ASCII_Hex_Digit => ['!-', 'A'],
- IsAsciiHexAndDash => ['-', 'A'],
-
- # This overrides the official one
- InLatin1 => ['\x{0100}', '!\x{00FF}'],
-);
-
-my @USER_CASELESS_PROPERTIES = (
- #
- # User defined properties which differ depending on /i. Second entry is
- # false normally, true under /i
- #
- 'IsMyUpper' => ["M", "!m" ],
-);
+ my @USER_DEFINED_PROPERTIES = (
+ #
+ # User defined properties
+ #
+ InKana1 => ['\x{3040}', '!\x{303F}'],
+ InKana2 => ['\x{3040}', '!\x{303F}'],
+ InKana3 => ['\x{3041}', '!\x{3040}'],
+ InNotKana => ['\x{3040}', '!\x{3041}'],
+ InConsonant => ['d', '!e'],
+ IsSyriac1 => ['\x{0712}', '!\x{072F}'],
+ IsSyriac1KanaMark => ['\x{309A}', '!\x{3090}'],
+ IsSyriac1KanaMark => ['\x{0730}', '!\x{0712}'],
+ '# User-defined character properties may lack \n at the end',
+ InGreekSmall => ['\N{GREEK SMALL LETTER PI}',
+ '\N{GREEK SMALL LETTER FINAL SIGMA}'],
+ InGreekCapital => ['\N{GREEK CAPITAL LETTER PI}', '!\x{03A2}'],
+ Dash => ['-'],
+ ASCII_Hex_Digit => ['!-', 'A'],
+ IsAsciiHexAndDash => ['-', 'A'],
+
+ # This overrides the official one
+ InLatin1 => ['\x{0100}', '!\x{00FF}'],
+ );
+
+ my @USER_CASELESS_PROPERTIES = (
+ #
+ # User defined properties which differ depending on /i. Second entry
+ # is false normally, true under /i
+ #
+ 'IsMyUpper' => ["M", "!m" ],
+ );
#
@@ -365,14 +365,14 @@ sub IsMyUpper {
my $mylower = qr/\p{pkg::IsMyLower}/i;
- sub pkg::IsMyLower {
- my $caseless = shift;
- return "+utf8::"
- . (($caseless)
- ? 'Alphabetic'
- : 'Lowercase')
- . "\n&utf8::ASCII";
- }
+sub pkg::IsMyLower {
+ my $caseless = shift;
+ return "+utf8::"
+ . (($caseless)
+ ? 'Alphabetic'
+ : 'Lowercase')
+ . "\n&utf8::ASCII";
+}
like("A", $mylower, "Not available until runtime user-defined property with pkg:: and /i works");