| 1 |
<testSuite> |
| 2 |
<testCase> |
| 3 |
<correct>xyzzy</correct> |
| 4 |
<valid>xyzzy</valid> |
| 5 |
<invalid>xyzz</invalid> |
| 6 |
<invalid>xyzzyy</invalid> |
| 7 |
<invalid>xxyzzy</invalid> |
| 8 |
<invalid>XYZZY</invalid> |
| 9 |
<invalid> xyzzy</invalid> |
| 10 |
</testCase> |
| 11 |
<testCase> |
| 12 |
<correct>\i</correct> |
| 13 |
<valid>j</valid> |
| 14 |
<valid>℮</valid> |
| 15 |
<valid>:</valid> |
| 16 |
<invalid>𐀀</invalid> |
| 17 |
<invalid>𐐀</invalid> |
| 18 |
<invalid>𐐨</invalid> |
| 19 |
</testCase> |
| 20 |
<testCase> |
| 21 |
<incorrect>a??</incorrect> |
| 22 |
</testCase> |
| 23 |
<testCase> |
| 24 |
<correct>\P{IsGothic}</correct> |
| 25 |
<invalid>𐌰</invalid> |
| 26 |
<invalid>𐌿</invalid> |
| 27 |
<invalid>𐍏</invalid> |
| 28 |
<valid>X</valid> |
| 29 |
<valid>𐌯</valid> |
| 30 |
<valid>𠌰</valid> |
| 31 |
<valid>𰌰</valid> |
| 32 |
<valid>𐍐</valid> |
| 33 |
</testCase> |
| 34 |
<testCase> |
| 35 |
<correct>\p{IsGothic}</correct> |
| 36 |
<valid>𐌰</valid> |
| 37 |
<valid>𐌿</valid> |
| 38 |
<valid>𐍏</valid> |
| 39 |
<invalid>X</invalid> |
| 40 |
<invalid>𐌯</invalid> |
| 41 |
<invalid>𠌰</invalid> |
| 42 |
<invalid>𰌰</invalid> |
| 43 |
<invalid>𐍐</invalid> |
| 44 |
</testCase> |
| 45 |
<testCase> |
| 46 |
<correct>$</correct> |
| 47 |
<valid>$</valid> |
| 48 |
<invalid/> |
| 49 |
</testCase> |
| 50 |
<testCase> |
| 51 |
<correct>a|b</correct> |
| 52 |
</testCase> |
| 53 |
<testCase> |
| 54 |
<correct>[x-y]</correct> |
| 55 |
</testCase> |
| 56 |
<testCase> |
| 57 |
<correct>[\p{Nd}-[a-z]]</correct> |
| 58 |
</testCase> |
| 59 |
<testCase> |
| 60 |
<correct>[\p{Nd}-[\p{IsThai}]]</correct> |
| 61 |
</testCase> |
| 62 |
<testCase> |
| 63 |
<correct>\p{IsThai}</correct> |
| 64 |
</testCase> |
| 65 |
<testCase> |
| 66 |
<correct>\i\c*</correct> |
| 67 |
</testCase> |
| 68 |
<testCase> |
| 69 |
<correct>~!@#$%\^&\*\(\)_\+`\-=\{\}\[\]\|\\:;"',\.<>/\?</correct> |
| 70 |
<valid>~!@#$%^&*()_+`-={}[]|\:;"',.<>/?</valid> |
| 71 |
</testCase> |
| 72 |
<testCase> |
| 73 |
<correct>[f&&g]</correct> |
| 74 |
<valid>f</valid> |
| 75 |
<valid>&</valid> |
| 76 |
<valid>g</valid> |
| 77 |
</testCase> |
| 78 |
<testCase> |
| 79 |
<correct>^</correct> |
| 80 |
<valid>^</valid> |
| 81 |
</testCase> |
| 82 |
<testCase> |
| 83 |
<incorrect>\</incorrect> |
| 84 |
</testCase> |
| 85 |
<testCase> |
| 86 |
<incorrect>?</incorrect> |
| 87 |
</testCase> |
| 88 |
<testCase> |
| 89 |
<incorrect>*</incorrect> |
| 90 |
</testCase> |
| 91 |
<testCase> |
| 92 |
<incorrect>+</incorrect> |
| 93 |
</testCase> |
| 94 |
<testCase> |
| 95 |
<incorrect>(</incorrect> |
| 96 |
</testCase> |
| 97 |
<testCase> |
| 98 |
<incorrect>[</incorrect> |
| 99 |
</testCase> |
| 100 |
<testCase> |
| 101 |
<incorrect>]</incorrect> |
| 102 |
</testCase> |
| 103 |
<testCase> |
| 104 |
<correct>-</correct> |
| 105 |
<valid>-</valid> |
| 106 |
</testCase> |
| 107 |
<testCase> |
| 108 |
<correct>|</correct> |
| 109 |
<valid/> |
| 110 |
<invalid>|</invalid> |
| 111 |
</testCase> |
| 112 |
<testCase> |
| 113 |
<correct>.</correct> |
| 114 |
<valid>.</valid> |
| 115 |
<invalid/> |
| 116 |
<invalid> |
| 117 |
</invalid> |
| 118 |
<invalid>
</invalid> |
| 119 |
<invalid>
</invalid> |
| 120 |
<invalid>..</invalid> |
| 121 |
<valid>𐌰</valid> |
| 122 |
</testCase> |
| 123 |
<testCase> |
| 124 |
<incorrect>[^]</incorrect> |
| 125 |
</testCase> |
| 126 |
<testCase> |
| 127 |
<incorrect>[]</incorrect> |
| 128 |
</testCase> |
| 129 |
<testCase> |
| 130 |
<incorrect>[]]</incorrect> |
| 131 |
</testCase> |
| 132 |
<testCase> |
| 133 |
<incorrect>[[]</incorrect> |
| 134 |
</testCase> |
| 135 |
<testCase> |
| 136 |
<incorrect>[\]</incorrect> |
| 137 |
</testCase> |
| 138 |
<testCase> |
| 139 |
<correct>[^^]</correct> |
| 140 |
<valid>x</valid> |
| 141 |
<invalid>^</invalid> |
| 142 |
</testCase> |
| 143 |
<testCase> |
| 144 |
<correct>[?+*(){}|.]</correct> |
| 145 |
<valid>?</valid> |
| 146 |
<valid>+</valid> |
| 147 |
<valid>*</valid> |
| 148 |
<valid>(</valid> |
| 149 |
<valid>)</valid> |
| 150 |
<valid>{</valid> |
| 151 |
<valid>}</valid> |
| 152 |
<valid>|</valid> |
| 153 |
<valid>.</valid> |
| 154 |
<invalid>x</invalid> |
| 155 |
</testCase> |
| 156 |
<testCase> |
| 157 |
<correct/> |
| 158 |
<valid/> |
| 159 |
<invalid>x</invalid> |
| 160 |
</testCase> |
| 161 |
<testCase> |
| 162 |
<incorrect>x{2,1}</incorrect> |
| 163 |
</testCase> |
| 164 |
<testCase> |
| 165 |
<correct>x{1,1}</correct> |
| 166 |
<valid>x</valid> |
| 167 |
</testCase> |
| 168 |
<testCase> |
| 169 |
<incorrect>x{1, 2}</incorrect> |
| 170 |
</testCase> |
| 171 |
<testCase> |
| 172 |
<incorrect>x{ 2}</incorrect> |
| 173 |
</testCase> |
| 174 |
<testCase> |
| 175 |
<incorrect>x{2 }</incorrect> |
| 176 |
</testCase> |
| 177 |
<testCase> |
| 178 |
<incorrect>x{-0,1}</incorrect> |
| 179 |
</testCase> |
| 180 |
<testCase> |
| 181 |
<incorrect>x{+2}</incorrect> |
| 182 |
</testCase> |
| 183 |
<testCase> |
| 184 |
<correct>[a-z-[c-y]]</correct> |
| 185 |
<valid>a</valid> |
| 186 |
<valid>b</valid> |
| 187 |
<valid>z</valid> |
| 188 |
<invalid>c</invalid> |
| 189 |
<invalid>y</invalid> |
| 190 |
<invalid>d</invalid> |
| 191 |
</testCase> |
| 192 |
<testCase> |
| 193 |
<correct>[abc-[a-a]]</correct> |
| 194 |
<valid>b</valid> |
| 195 |
<valid>c</valid> |
| 196 |
<invalid>a</invalid> |
| 197 |
<invalid>d</invalid> |
| 198 |
</testCase> |
| 199 |
<testCase> |
| 200 |
<incorrect>[a-[a]-[a]]</incorrect> |
| 201 |
</testCase> |
| 202 |
<testCase> |
| 203 |
<incorrect>\pL</incorrect> |
| 204 |
</testCase> |
| 205 |
<testCase> |
| 206 |
<incorrect>\p{IsHighSurrogates}</incorrect> |
| 207 |
</testCase> |
| 208 |
<testCase> |
| 209 |
<incorrect>\p{IsHighPrivateUseSurrogates}</incorrect> |
| 210 |
</testCase> |
| 211 |
<testCase> |
| 212 |
<incorrect>\p{IsLowSurrogates}</incorrect> |
| 213 |
</testCase> |
| 214 |
<testCase> |
| 215 |
<correct>a[𐌰-[𐌰]]*b</correct> |
| 216 |
<valid>ab</valid> |
| 217 |
<invalid>a𐌰b</invalid> |
| 218 |
</testCase> |
| 219 |
</testSuite> |