From 55856a786ae54bc994c59af39bfc9833456c405b Mon Sep 17 00:00:00 2001 From: Alan Liu Date: Wed, 14 Jun 2000 17:00:33 +0000 Subject: [PATCH] Test fieldDifference (j438) X-SVN-Rev: 1621 --- .../dev/test/calendar/CalendarRegression.java | 48 +++++++++++++++++++ .../ibm/test/calendar/CalendarRegression.java | 48 +++++++++++++++++++ 2 files changed, 96 insertions(+) diff --git a/icu4j/src/com/ibm/icu/dev/test/calendar/CalendarRegression.java b/icu4j/src/com/ibm/icu/dev/test/calendar/CalendarRegression.java index 7e82722d96..926b252d0d 100755 --- a/icu4j/src/com/ibm/icu/dev/test/calendar/CalendarRegression.java +++ b/icu4j/src/com/ibm/icu/dev/test/calendar/CalendarRegression.java @@ -1513,7 +1513,55 @@ public class CalendarRegression extends com.ibm.test.TestFmwk { TimeZone.setDefault(savedTZ); } + /** + * Test fieldDifference(). + */ + public void TestJ438() throws Exception { + int DATA[] = { + 2000, Calendar.JANUARY, 20, 2010, Calendar.JUNE, 15, + 2010, Calendar.JUNE, 15, 2000, Calendar.JANUARY, 20, + 1964, Calendar.SEPTEMBER, 7, 1999, Calendar.JUNE, 4, + 1999, Calendar.JUNE, 4, 1964, Calendar.SEPTEMBER, 7, + }; + Calendar cal = Calendar.getInstance(Locale.US); + for (int i=0; i