diff --git a/icu4j/main/classes/core/src/com/ibm/icu/impl/UCharacterProperty.java b/icu4j/main/classes/core/src/com/ibm/icu/impl/UCharacterProperty.java index fc28c9d44fe..0af9f5cf808 100644 --- a/icu4j/main/classes/core/src/com/ibm/icu/impl/UCharacterProperty.java +++ b/icu4j/main/classes/core/src/com/ibm/icu/impl/UCharacterProperty.java @@ -1,6 +1,6 @@ /* ******************************************************************************* - * Copyright (C) 1996-2015, International Business Machines Corporation and + * Copyright (C) 1996-2016, International Business Machines Corporation and * others. All Rights Reserved. ******************************************************************************* */ @@ -384,6 +384,10 @@ public final class UCharacterProperty return !Normalizer2Impl.UTF16Plus.equal(dest, src); } }, + new BinaryProperty(2, 1< 700); + + assertTrue("shooting star is Emoji_Presentation", + UCharacter.hasBinaryProperty(0x1F320, UProperty.EMOJI_PRESENTATION)); + assertTrue("Fitzpatrick 6 is Emoji_Modifier", + UCharacter.hasBinaryProperty(0x1F3FF, UProperty.EMOJI_MODIFIER)); + assertTrue("happy person is Emoji_Modifier_Base", + UCharacter.hasBinaryProperty(0x1F64B, UProperty.EMOJI_MODIFIER_BASE)); + } + public void TestIsBMP() { int ch[] = {0x0, -1, 0xffff, 0x10ffff, 0xff, 0x1ffff};