OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 // Flags: --harmony-regexp-property --harmony-unicode-regexps |
| 6 |
| 7 assertThrows("/\\p{In CJK}/u"); |
| 8 assertThrows("/\\p{InCJKUnifiedIdeographs}/u"); |
| 9 assertDoesNotThrow("/\\p{InCJK}/u"); |
| 10 assertDoesNotThrow("/\\p{InCJK_Unified_Ideographs}/u"); |
| 11 |
| 12 assertDoesNotThrow("/\\p{InCyrillic_Sup}/u"); |
| 13 assertDoesNotThrow("/\\p{InCyrillic_Supplement}/u"); |
| 14 assertDoesNotThrow("/\\p{InCyrillic_Supplementary}/u"); |
| 15 assertThrows("/\\p{InCyrillicSupplementary}/u"); |
| 16 assertThrows("/\\p{InCyrillic_supplementary}/u"); |
| 17 |
| 18 assertDoesNotThrow("/\\pC/u"); |
| 19 assertDoesNotThrow("/\\p{Other}/u"); |
| 20 assertDoesNotThrow("/\\p{Cc}/u"); |
| 21 assertDoesNotThrow("/\\p{Control}/u"); |
| 22 assertDoesNotThrow("/\\p{cntrl}/u"); |
| 23 assertDoesNotThrow("/\\p{M}/u"); |
| 24 assertDoesNotThrow("/\\p{Mark}/u"); |
| 25 assertDoesNotThrow("/\\p{Combining_Mark}/u"); |
| 26 assertThrows("/\\p{Combining Mark}/u"); |
| 27 |
| 28 assertDoesNotThrow("/\\p{Copt}/u"); |
| 29 assertDoesNotThrow("/\\p{Coptic}/u"); |
| 30 assertDoesNotThrow("/\\p{Qaac}/u"); |
| 31 assertDoesNotThrow("/\\p{Egyp}/u"); |
| 32 assertDoesNotThrow("/\\p{Egyptian_Hieroglyphs}/u"); |
| 33 assertThrows("/\\p{EgyptianHieroglyphs}/u"); |
OLD | NEW |