]> gitweb.fperrin.net Git - Dictionary.git/blob - jars/icu4j-52_1/main/tests/core/src/com/ibm/icu/dev/test/bidi/TestCharFromDirProp.java
Clean up imports.
[Dictionary.git] / jars / icu4j-52_1 / main / tests / core / src / com / ibm / icu / dev / test / bidi / TestCharFromDirProp.java
1 /*
2 *******************************************************************************
3 *   Copyright (C) 2007-2010, International Business Machines
4 *   Corporation and others.  All Rights Reserved.
5 *******************************************************************************
6 */
7
8 package com.ibm.icu.dev.test.bidi;
9
10 import com.ibm.icu.impl.Utility;
11 import com.ibm.icu.lang.UCharacter;
12 import com.ibm.icu.lang.UCharacterDirection;
13
14 /**
15  * Regression test for Bidi charFromDirProp
16  *
17  * @author Lina Kemmel, Matitiahu Allouche
18  */
19
20 public class TestCharFromDirProp extends BidiTest {
21
22     /* verify that the exemplar characters have the expected bidi classes */
23     public void testCharFromDirProp() {
24
25         logln("\nEntering TestCharFromDirProp");
26         int i = UCharacterDirection.CHAR_DIRECTION_COUNT;
27         while (i-- > 0) {
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);
32         }
33         logln("\nExiting TestCharFromDirProp");
34     }
35
36     public static void main(String[] args) {
37         try {
38             new TestCharFromDirProp().run(args);
39         }
40         catch (Exception e) {
41             System.out.println(e);
42         }
43     }
44 }