]> gitweb.fperrin.net Git - Dictionary.git/blob - jars/icu4j-4_4_2-src/main/tests/core/src/com/ibm/icu/dev/test/duration/languages/Test_hi.java
go
[Dictionary.git] / jars / icu4j-4_4_2-src / main / tests / core / src / com / ibm / icu / dev / test / duration / languages / Test_hi.java
1 /*\r
2 ******************************************************************************\r
3 * Copyright (C) 2007-2010, International Business Machines Corporation and   *\r
4 * others. All Rights Reserved.                                               *\r
5 ******************************************************************************\r
6 */\r
7 \r
8 // Copyright 2006 Google Inc.  All Rights Reserved.\r
9 \r
10 package com.ibm.icu.dev.test.duration.languages;\r
11 \r
12 import com.ibm.icu.dev.test.duration.LanguageTestRoot;\r
13 import com.ibm.icu.impl.duration.TimeUnitConstants;\r
14 \r
15 /**\r
16  * Test cases for hi\r
17  */\r
18 public class Test_hi extends LanguageTestRoot implements TimeUnitConstants {\r
19 \r
20   /**\r
21    * Invoke the tests.\r
22    */\r
23   public static void main(String[] args) {\r
24       new Test_hi().run(args);\r
25   }\r
26 \r
27   /**\r
28    * Constructor.\r
29    */\r
30   public Test_hi() {\r
31     super("hi", false);\r
32   }\r
33 \r
34   public void testMonthNames() {\r
35     // test that month uses the plural form with singular digit\r
36     // in these cases:\r
37     // "1 months from now"\r
38     // "1 months, and 2 weeks from now"\r
39     // "more than 1 months",\r
40     // "more than 1 months ago"\r
41 /*\r
42     Period[] times = {\r
43       Period.at(1, MONTH).inFuture(),\r
44       Period.at(1, MONTH).and(2, WEEK).inFuture(),\r
45       Period.moreThan(1, MONTH),\r
46       Period.moreThan(1, MONTH).inFuture(),\r
47     };\r
48 \r
49     String[] targets = {\r
50       "\u0905\u092d\u0940 \u0938\u0947 \u0967 \u092e\u0939\u0940\u0928\u0947 \u092c\u093e\u0926",\r
51       "\u0905\u092d\u0940 \u0938\u0947 \u0967 \u092e\u0939\u0940\u0928\u0947 \u0914\u0930 \u0968 \u0938\u092a\u094d\u0924\u093e\u0939 \u092c\u093e\u0926",\r
52       "\u0967 \u092e\u0939\u0940\u0928\u0947 \u0938\u0947 \u0915\u092e",\r
53       "\u0967 \u092e\u0939\u0940\u0928\u0947 \u0938\u0947 \u0915\u092e \u092a\u0939\u0932\u0947",\r
54     };\r
55 \r
56     PeriodFormatterFactory pff = BasicPeriodFormatterFactory.getDefault()\r
57         .setLocale("hi");\r
58     PeriodFormatter pf = pff.getFormatter();\r
59     for (int i = 0; i < targets.length; ++i) {\r
60         xAssertEquals(timestring(times[i]), targets, i, pf.format(times[i]));\r
61     }\r
62 */\r
63   }\r
64 }\r