Home | History | Annotate | Download | only in testdata
      1 # This set of tests checks local-specific features, using the "fr_FR" locale. 
      2 # It is not Perl-compatible. When run via RunTest, the locale is edited to
      3 # be whichever of "fr_FR", "french", or "fr" is found to exist. There is
      4 # different version of this file called wintestinput3 for use on Windows,
      5 # where the locale is called "french" and the tests are run using
      6 # RunTest.bat. 
      7 
      8 #forbid_utf
      9 
     10 /^[\w]+/
     11 \= Expect no match
     12     cole
     13 No match
     14 
     15 /^[\w]+/locale=fr_FR
     16     cole
     17  0: cole
     18 
     19 /^[\w]+/
     20 \= Expect no match
     21     cole
     22 No match
     23 
     24 /^[\W]+/
     25     cole
     26  0: \xc9
     27 
     28 /^[\W]+/locale=fr_FR
     29 \= Expect no match
     30     cole
     31 No match
     32 
     33 /[\b]/
     34     \b
     35  0: \x08
     36 \= Expect no match
     37     a
     38 No match
     39 
     40 /[\b]/locale=fr_FR
     41     \b
     42  0: \x08
     43 \= Expect no match
     44     a
     45 No match
     46 
     47 /^\w+/
     48 \= Expect no match
     49     cole
     50 No match
     51 
     52 /^\w+/locale=fr_FR
     53     cole
     54  0: cole
     55 
     56 /(.+)\b(.+)/
     57     cole
     58  0: \xc9cole
     59  1: \xc9
     60  2: cole
     61 
     62 /(.+)\b(.+)/locale=fr_FR
     63 \= Expect no match
     64     cole
     65 No match
     66 
     67 /cole/i
     68     cole
     69  0: \xc9cole
     70 \= Expect no match
     71     cole
     72 No match
     73 
     74 /cole/i,locale=fr_FR
     75     cole
     76  0: cole
     77     cole
     78  0: cole
     79 
     80 /\w/I
     81 Capturing subpattern count = 0
     82 Starting code units: 0 1 2 3 4 5 6 7 8 9 A B C D E F G H I J K L M N O P 
     83   Q R S T U V W X Y Z _ a b c d e f g h i j k l m n o p q r s t u v w x y z 
     84 Subject length lower bound = 1
     85 
     86 /\w/I,locale=fr_FR
     87 Capturing subpattern count = 0
     88 Starting code units: 0 1 2 3 4 5 6 7 8 9 A B C D E F G H I J K L M N O P 
     89   Q R S T U V W X Y Z _ a b c d e f g h i j k l m n o p q r s t u v w x y z 
     90                                        
     91                               
     92 Subject length lower bound = 1
     93 
     94 # All remaining tests are in the fr_FR locale, so set the default.
     95 
     96 #pattern locale=fr_FR
     97 
     98 /^[\xc8-\xc9]/i
     99     cole
    100  0: 
    101     cole
    102  0: 
    103 
    104 /^[\xc8-\xc9]/
    105     cole
    106  0: 
    107 \= Expect no match
    108     cole
    109 No match
    110 
    111 /\W+/
    112     >>>\xaa<<<
    113  0: >>>
    114     >>>\xba<<< 
    115  0: >>>
    116 
    117 /[\W]+/
    118     >>>\xaa<<<
    119  0: >>>
    120     >>>\xba<<< 
    121  0: >>>
    122 
    123 /[^[:alpha:]]+/
    124     >>>\xaa<<<
    125  0: >>>
    126     >>>\xba<<< 
    127  0: >>>
    128 
    129 /\w+/
    130     >>>\xaa<<<
    131  0: 
    132     >>>\xba<<< 
    133  0: 
    134 
    135 /[\w]+/
    136     >>>\xaa<<<
    137  0: 
    138     >>>\xba<<< 
    139  0: 
    140 
    141 /[[:alpha:]]+/
    142     >>>\xaa<<<
    143  0: 
    144     >>>\xba<<< 
    145  0: 
    146     
    147 /[[:alpha:]][[:lower:]][[:upper:]]/IB
    148 ------------------------------------------------------------------
    149         Bra
    150         [A-Za-z\x83\x8a\x8c\x8e\x9a\x9c\x9e\x9f\xaa\xb5\xba\xc0-\xd6\xd8-\xf6\xf8-\xff]
    151         [a-z\x83\x9a\x9c\x9e\xaa\xb5\xba\xdf-\xf6\xf8-\xff]
    152         [A-Z\x8a\x8c\x8e\x9f\xc0-\xd6\xd8-\xde]
    153         Ket
    154         End
    155 ------------------------------------------------------------------
    156 Capturing subpattern count = 0
    157 Starting code units: A B C D E F G H I J K L M N O P Q R S T U V W X Y Z 
    158   a b c d e f g h i j k l m n o p q r s t u v w x y z            
    159                                        
    160                    
    161 Subject length lower bound = 3
    162 
    163 # End of testinput3 
    164