< prev index next >

test/jdk/java/util/Calendar/CalendarTestScripts/japanese/japanese_minmax.cts

Print this page
rev 54350 : 8205432: Replace the placeholder Japanese era name
Reviewed-by: rriggs

@@ -12,14 +12,14 @@
 timezone GMT+09:00
 new instance tokyocal
 
 test Make sure that the maximum year value doesn't depent on era
     use jcal
-        # Note: the max year value is as of NewEra
+        # Note: the max year value is as of Reiwa
         assign 292276976 $max
         clear all
-        set date NewEra 1 May 1
+        set date Reiwa 1 May 1
         get millis
         check max year $max
         assign $max $maxyear
 
         clear all

@@ -37,13 +37,13 @@
         get millis
         check max year $max
 
 test Max of ERA
     use jcal
-        # Assumption: NewEra is the current era
-        check maximum era NewEra
-        check leastmax era NewEra
+        # Assumption: Reiwa is the current era
+        check maximum era Reiwa
+        check leastmax era Reiwa
 
 test Actual max MONTH
     use jcal
         clear all
         set date BeforeMeiji 1867 Jan 31

@@ -76,11 +76,11 @@
         check actualmax month Apr
         get millis
         check actualmax month Apr
 
         clear all
-        set date NewEra 2 Jan 1
+        set date Reiwa 2 Jan 1
         set year $maxyear
         check actualmax month Aug
         get millis
         check actualmax month Aug
 

@@ -131,12 +131,12 @@
         check day_of_year 358
 
    # time zone dependent
    use tokyocal
         clear all
-        set date NewEra $maxyear Jan 1
-        # the last date of NewEra is N292276976.08.17T16:12:55.807+0900
+        set date Reiwa $maxyear Jan 1
+        # the last date of Reiwa is R292276976.08.17T16:12:55.807+0900
         check actualmax day_of_year 229 # 31+28+31+30+31+30+31+17
 
 test Actual max WEEK_OF_YEAR
     use jcal
         clear all

@@ -163,16 +163,16 @@
         check actualmax week_of_year 51
 
         clear all
         set date Heisei 31 Apr 28
         check actualmax week_of_year 17
-        set date NewEra 1 Aug 9
+        set date Reiwa 1 Aug 9
         check actualmax week_of_year 35
 
     use tokyocal
-        set date NewEra $maxyear Jan 1
-        # the last date of NewEra is N292276976.08.17T16:12:55.807+0900 (Sunday)        
+        set date Reiwa $maxyear Jan 1
+        # the last date of Reiwa is R292276976.08.17T16:12:55.807+0900 (Sunday) 
         # The year is equivalent to 2003 (Gregorian).
         check actualmax week_of_year 34
 
 test Actual max WEEK_OF_MONTH
     use jcal

@@ -195,16 +195,16 @@
         check actualmax week_of_month 5
 
         clear all
         set date Heisei 31 Apr 30
         check actualmax week_of_month 5
-        set date NewEra 1 May 1
+        set date Reiwa 1 May 1
         check actualmax week_of_month 5
 
     use tokyocal
-        set date NewEra $maxyear Jan 1
-        # the last date of NewEra is N292276976.08.17T16:12:55.807+0900 (Sunday)        
+        set date Reiwa $maxyear Jan 1
+        # the last date of Reiwa is R292276976.08.17T16:12:55.807+0900 (Sunday) 
         # The year is equivalent to 2003 (Gregorian).
         check actualmax week_of_month 4
         
 test Actual max DAY_OF_WEEK_IN_MONTH
     use jcal

@@ -227,17 +227,17 @@
         check actualmax week_of_month 5
 
         clear all
         set date Heisei 31 Apr 30
         check actualmax week_of_month 5
-        set date NewEra 1 May 1
+        set date Reiwa 1 May 1
         check actualmax week_of_month 5
 
     use tokyocal
         clear all
-        set date NewEra $maxyear Jan 1
-        # the last date of NewEra is N292276976.08.17T16:12:55.807+0900 (Sunday)        
+        set date Reiwa $maxyear Jan 1
+        # the last date of Reiwa is R292276976.08.17T16:12:55.807+0900 (Sunday) 
         # The year is equivalent to 2003 (Gregorian).
         check actualmax week_of_month 4
 
 test Actual max YEAR
     use jcal

@@ -267,15 +267,15 @@
         check actualmax year 64 
 
         set date Heisei 1 Aug 18
         check actualmax year 30
 
-        set date NewEra 1 Apr 30
+        set date Reiwa 1 Apr 30
         check actualmax year 31
 
         # Date/time beyond the last date in the max year.
-        set date NewEra 1 Aug 18
+        set date Reiwa 1 Aug 18
         check actualmax year 292276975
         
 test Least max YEAR
         set date Heisei 17 Mar 1
         # Taisho is the shortest era, 14 years.
< prev index next >