]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/test/testdata/calendar.txt
ICU-62135.0.1.tar.gz
[apple/icu.git] / icuSources / test / testdata / calendar.txt
index 143c551f43553f988849ca9b99e2e16934b62e9d..83b9301419b24275b40676372b87456b55ab0078 100644 (file)
@@ -1,4 +1,6 @@
-// Copyright (c) 2008 International Business Machines
+// Copyright (C) 2016 and later: Unicode, Inc. and others.
+// License & terms of use: http://www.unicode.org/copyright.html
+// Copyright (c) 2008-2013 International Business Machines
 // Corporation and others. All Rights Reserved.
 calendar:table(nofallback) {
     Info {
 // Corporation and others. All Rights Reserved.
 calendar:table(nofallback) {
     Info {
@@ -115,6 +117,58 @@ calendar:table(nofallback) {
                     "EXTENDED_YEAR=4627,MONTH=5,DATE=1,IS_LEAP_MONTH=0", // ch
                     "YEAR=1990,MONTH=6,DATE=22",   // greg
                },
                     "EXTENDED_YEAR=4627,MONTH=5,DATE=1,IS_LEAP_MONTH=0", // ch
                     "YEAR=1990,MONTH=6,DATE=22",   // greg
                },
+               // dangi calendar
+               // (0-based months)
+               {
+                    "en_US@calendar=dangi",
+                    "EXTENDED_YEAR=4297,MONTH=6,DATE=29,IS_LEAP_MONTH=0", // dangi
+                    "YEAR=1964,MONTH=8,DATE=5",   // greg
+               },
+               {
+                    "en_US@calendar=dangi",
+                     "EXTENDED_YEAR=4297,MONTH=7,DATE=1,IS_LEAP_MONTH=0", // dangi
+                    "YEAR=1964,MONTH=8,DATE=6",   // greg
+               },
+               {
+                    "en_US@calendar=dangi",
+                     "EXTENDED_YEAR=4294,MONTH=10,DATE=18,IS_LEAP_MONTH=0", // dangi
+                    "YEAR=1961,MONTH=11,DATE=25",   // greg
+               },
+               {
+                    "en_US@calendar=dangi",
+                     "EXTENDED_YEAR=4323,MONTH=4,DATE=30,IS_LEAP_MONTH=0", // dangi
+                    "YEAR=1990,MONTH=5,DATE=22",   // greg
+               },
+               {
+                    "en_US@calendar=dangi",
+                     "EXTENDED_YEAR=4323,MONTH=4,DATE=1,IS_LEAP_MONTH=1", // dangi
+                    "YEAR=1990,MONTH=5,DATE=23",   // greg
+               },
+               {
+                    "en_US@calendar=dangi",
+                     "EXTENDED_YEAR=4323,MONTH=4,DATE=29,IS_LEAP_MONTH=1", // dangi
+                    "YEAR=1990,MONTH=6,DATE=21",   // greg
+               },
+               {
+                    "en_US@calendar=dangi",
+                     "EXTENDED_YEAR=4323,MONTH=5,DATE=1,IS_LEAP_MONTH=0", // dangi
+                    "YEAR=1990,MONTH=6,DATE=22",   // greg
+               },
+               {
+                    "en_US@calendar=dangi",
+                     "EXTENDED_YEAR=4213,MONTH=9,DATE=1,IS_LEAP_MONTH=0", // dangi
+                    "YEAR=1880,MONTH=10,DATE=3",   // greg
+               },
+               {
+                    "en_US@calendar=dangi",
+                     "EXTENDED_YEAR=4215,MONTH=10,DATE=1,IS_LEAP_MONTH=0", // dangi
+                    "YEAR=1882,MONTH=11,DATE=10",   // greg
+               },
+               {
+                    "en_US@calendar=dangi",
+                     "EXTENDED_YEAR=4230,MONTH=6,DATE=1,IS_LEAP_MONTH=0", // dangi
+                    "YEAR=1897,MONTH=6,DATE=29",   // greg
+               },
             }
         }
         TestCalendarOperations {
             }
         }
         TestCalendarOperations {
@@ -270,7 +324,7 @@ calendar:table(nofallback) {
                     "en_US@calendar=chinese",         
                     "EXTENDED_YEAR=4638,MONTH=2,DATE=15,IS_LEAP_MONTH=0",  // ch  
                     "roll",
                     "en_US@calendar=chinese",         
                     "EXTENDED_YEAR=4638,MONTH=2,DATE=15,IS_LEAP_MONTH=0",  // ch  
                     "roll",
-                    "MONTH=3", // month + 16
+                    "MONTH=16", // month + 16
                     "EXTENDED_YEAR=4638,MONTH=4,DATE=15,IS_LEAP_MONTH=0",  // ch  
                },
                { // month=3 is a leap month
                     "EXTENDED_YEAR=4638,MONTH=4,DATE=15,IS_LEAP_MONTH=0",  // ch  
                },
                { // month=3 is a leap month
@@ -343,8 +397,50 @@ calendar:table(nofallback) {
                     "MONTH=-10", // month - 10
                     "EXTENDED_YEAR=4638,MONTH=5,DATE=29,IS_LEAP_MONTH=0",  // ch  
                },
                     "MONTH=-10", // month - 10
                     "EXTENDED_YEAR=4638,MONTH=5,DATE=29,IS_LEAP_MONTH=0",  // ch  
                },
-               
-           }
+               //dangi add tests
+               { // normal
+                    "en_US@calendar=dangi",         
+                    "EXTENDED_YEAR=4338,MONTH=2,DATE=15,IS_LEAP_MONTH=0",  // dangi  
+                    "add",
+                    "MONTH=3", // month + 3
+                    "EXTENDED_YEAR=4338,MONTH=5,DATE=15,IS_LEAP_MONTH=0",  // dangi  
+               },
+               { // across year
+                    "en_US@calendar=dangi",         
+                    "EXTENDED_YEAR=4335,MONTH=11,DATE=15,IS_LEAP_MONTH=0",  // dangi  
+                    "add",
+                    "MONTH=1", // month + 1
+                    "EXTENDED_YEAR=4336,MONTH=0,DATE=15,IS_LEAP_MONTH=0",  // dangi  
+               },
+               { // 4 = leap
+                    "en_US@calendar=dangi",         
+                    "EXTENDED_YEAR=4334,MONTH=2,DATE=15,IS_LEAP_MONTH=0",  // dangi  
+                    "add",
+                    "MONTH=3", // month + 3
+                    "EXTENDED_YEAR=4334,MONTH=4,DATE=15,IS_LEAP_MONTH=0",  // dangi  
+               },
+               { // 4 = leap
+                    "en_US@calendar=dangi",         
+                    "EXTENDED_YEAR=4334,MONTH=2,DATE=15,IS_LEAP_MONTH=0",  // dangi  
+                    "add",
+                    "MONTH=2", // month + 2
+                    "EXTENDED_YEAR=4334,MONTH=3,DATE=15,IS_LEAP_MONTH=1",  // dangi  
+               },
+               { // dom should pin
+                    "en_US@calendar=dangi",         
+                    "EXTENDED_YEAR=4334,MONTH=2,DATE=30,IS_LEAP_MONTH=0",  // dangi  
+                    "add",
+                    "MONTH=2", // month + 2
+                    "EXTENDED_YEAR=4334,MONTH=3,DATE=29,IS_LEAP_MONTH=1",  // dangi  
+               },
+               {
+                    "en_US@calendar=hebrew",         
+                    "MILLIS=-180799750799999",
+                    "add",
+                    "YEAR=100000", // year + 100000
+                    "MILLIS=2974930006022001",
+               },
+            }
         }                
     }      
 }
         }                
     }      
 }