2 *******************************************************************************
\r
3 * Copyright (C) 2007-2010, International Business Machines
\r
4 * Corporation and others. All Rights Reserved.
\r
5 *******************************************************************************
\r
8 package com.ibm.icu.dev.test.bidi;
\r
10 import com.ibm.icu.impl.Utility;
\r
11 import com.ibm.icu.lang.UCharacter;
\r
12 import com.ibm.icu.lang.UCharacterDirection;
\r
15 * Regression test for Bidi charFromDirProp
\r
17 * @author Lina Kemmel, Matitiahu Allouche
\r
20 public class TestCharFromDirProp extends BidiTest {
\r
22 /* verify that the exemplar characters have the expected bidi classes */
\r
23 public void testCharFromDirProp() {
\r
25 logln("\nEntering TestCharFromDirProp");
\r
26 int i = UCharacterDirection.CHAR_DIRECTION_COUNT;
\r
28 char c = charFromDirProp[i];
\r
29 int dir = UCharacter.getDirection(c);
\r
30 assertEquals("UCharacter.getDirection(TestData.charFromDirProp[" + i
\r
31 + "] == U+" + Utility.hex(c) + ") failed", i, dir);
\r
33 logln("\nExiting TestCharFromDirProp");
\r
36 public static void main(String[] args) {
\r
38 new TestCharFromDirProp().run(args);
\r
40 catch (Exception e) {
\r
41 System.out.println(e);
\r