2 *******************************************************************************
\r
3 * Copyright (C) 2002-2005, International Business Machines Corporation and *
\r
4 * others. All Rights Reserved. *
\r
5 *******************************************************************************
\r
9 * Port From: ICU4C v2.1 : Collate/CollationTurkishTest
\r
10 * Source File: $ICU4CRoot/source/test/intltest/trcoll.cpp
\r
13 package com.ibm.icu.dev.test.collator;
\r
15 import com.ibm.icu.dev.test.*;
\r
16 import com.ibm.icu.text.*;
\r
17 import java.util.Locale;
\r
19 public class CollationChineseTest extends TestFmwk{
\r
20 public static void main(String[] args) throws Exception{
\r
21 new CollationChineseTest().run(args);
\r
24 public CollationChineseTest()
\r
28 public void TestPinYin()
\r
31 = {"\u963f", "\u554a", "\u54ce", "\u6371", "\u7231", "\u9f98",
\r
32 "\u4e5c", "\u8baa", "\u4e42", "\u53c8"};
\r
33 RuleBasedCollator collator = null;
\r
35 collator = (RuleBasedCollator)Collator.getInstance(
\r
36 new Locale("zh", "", "PINYIN"));
\r
37 } catch (Exception e) {
\r
38 warnln("ERROR: in creation of collator of zh__PINYIN locale");
\r
41 for (int i = 0; i < seq.length - 1; i ++) {
\r
42 CollationTest.doTest(this, collator, seq[i], seq[i + 1], -1);
\r