github的一些开源项目
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

170 lines
2.9 KiB

  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. #forbid_utf
  8. /^[\w]+/
  9. \= Expect no match
  10. �cole
  11. No match
  12. /^[\w]+/locale=fr_FR
  13. �cole
  14. 0: �cole
  15. /^[\w]+/
  16. \= Expect no match
  17. �cole
  18. No match
  19. /^[\W]+/
  20. �cole
  21. 0: \xc9
  22. /^[\W]+/locale=fr_FR
  23. \= Expect no match
  24. �cole
  25. No match
  26. /[\b]/
  27. \b
  28. 0: \x08
  29. \= Expect no match
  30. a
  31. No match
  32. /[\b]/locale=fr_FR
  33. \b
  34. 0: \x08
  35. \= Expect no match
  36. a
  37. No match
  38. /^\w+/
  39. \= Expect no match
  40. �cole
  41. No match
  42. /^\w+/locale=fr_FR
  43. �cole
  44. 0: �cole
  45. /(.+)\b(.+)/
  46. �cole
  47. 0: \xc9cole
  48. 1: \xc9
  49. 2: cole
  50. /(.+)\b(.+)/locale=fr_FR
  51. \= Expect no match
  52. �cole
  53. No match
  54. /�cole/i
  55. �cole
  56. 0: \xc9cole
  57. \= Expect no match
  58. �cole
  59. No match
  60. /�cole/i,locale=fr_FR
  61. �cole
  62. 0: �cole
  63. �cole
  64. 0: �cole
  65. /\w/I
  66. Capture group count = 0
  67. 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
  68. 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
  69. Subject length lower bound = 1
  70. /\w/I,locale=fr_FR
  71. Capture group count = 0
  72. 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
  73. 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
  74. � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � �
  75. � � � � � � � � � � � � � � � � � � � � � � � � � � � �
  76. Subject length lower bound = 1
  77. # All remaining tests are in the fr_FR locale, so set the default.
  78. #pattern locale=fr_FR
  79. /^[\xc8-\xc9]/i
  80. �cole
  81. 0: �
  82. �cole
  83. 0: �
  84. /^[\xc8-\xc9]/
  85. �cole
  86. 0: �
  87. \= Expect no match
  88. �cole
  89. No match
  90. /\xb5/i
  91. 0: �
  92. \= Expect no match
  93. \x9c
  94. No match
  95. /\W+/
  96. >>>\xaa<<<
  97. 0: >>>
  98. >>>\xba<<<
  99. 0: >>>
  100. /[\W]+/
  101. >>>\xaa<<<
  102. 0: >>>
  103. >>>\xba<<<
  104. 0: >>>
  105. /[^[:alpha:]]+/
  106. >>>\xaa<<<
  107. 0: >>>
  108. >>>\xba<<<
  109. 0: >>>
  110. /\w+/
  111. >>>\xaa<<<
  112. 0: �
  113. >>>\xba<<<
  114. 0: �
  115. /[\w]+/
  116. >>>\xaa<<<
  117. 0: �
  118. >>>\xba<<<
  119. 0: �
  120. /[[:alpha:]]+/
  121. >>>\xaa<<<
  122. 0: �
  123. >>>\xba<<<
  124. 0: �
  125. /[[:alpha:]][[:lower:]][[:upper:]]/IB
  126. ------------------------------------------------------------------
  127. Bra
  128. [A-Za-z\x83\x8a\x8c\x8e\x9a\x9c\x9e\x9f\xaa\xb5\xba\xc0-\xd6\xd8-\xf6\xf8-\xff]
  129. [a-z\x83\x9a\x9c\x9e\xaa\xb5\xba\xdf-\xf6\xf8-\xff]
  130. [A-Z\x8a\x8c\x8e\x9f\xc0-\xd6\xd8-\xde]
  131. Ket
  132. End
  133. ------------------------------------------------------------------
  134. Capture group count = 0
  135. 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
  136. 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 � � � � � � � � � � �
  137. � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � �
  138. � � � � � � � � � � � � � � � � �
  139. Subject length lower bound = 3
  140. # End of testinput3