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