@@ -1242,19 +1242,28 @@ describe('Intl', () => {
1242
1242
equal ( added . monthCode , date . monthCode ) ;
1243
1243
equal ( added . year , date . year + 2 ) ;
1244
1244
} ) ;
1245
- it ( 'Adding years across Chinese leap month' , ( ) => {
1245
+ const testChineseData = new Date ( '2001-02-01T00:00Z' ) . toLocaleString ( 'en-US-u-ca-chinese' , {
1246
+ day : 'numeric' ,
1247
+ month : 'numeric' ,
1248
+ year : 'numeric' ,
1249
+ era : 'short' ,
1250
+ timeZone : 'UTC'
1251
+ } ) ;
1252
+ const hasOutdatedChineseIcuData = ! testChineseData . endsWith ( '2001' ) ;
1253
+ const itOrSkip = hasOutdatedChineseIcuData ? it . skip : it ;
1254
+ itOrSkip ( 'Adding years across Chinese leap month' , ( ) => {
1246
1255
const date = Temporal . PlainDate . from ( { year : 2000 , monthCode : 'M08' , day : 2 , calendar : 'chinese' } ) ;
1247
1256
const added = date . add ( { years : 1 } ) ;
1248
1257
equal ( added . monthCode , date . monthCode ) ;
1249
1258
equal ( added . year , date . year + 1 ) ;
1250
1259
} ) ;
1251
- it ( 'Adding months across Chinese leap month' , ( ) => {
1260
+ itOrSkip ( 'Adding months across Chinese leap month' , ( ) => {
1252
1261
const date = Temporal . PlainDate . from ( { year : 2000 , monthCode : 'M08' , day : 2 , calendar : 'chinese' } ) ;
1253
1262
const added = date . add ( { months : 13 } ) ;
1254
1263
equal ( added . monthCode , date . monthCode ) ;
1255
1264
equal ( added . year , date . year + 1 ) ;
1256
1265
} ) ;
1257
- it ( 'Adding months and years across Chinese leap month' , ( ) => {
1266
+ itOrSkip ( 'Adding months and years across Chinese leap month' , ( ) => {
1258
1267
const date = Temporal . PlainDate . from ( { year : 2001 , monthCode : 'M08' , day : 2 , calendar : 'chinese' } ) ;
1259
1268
const added = date . add ( { years : 1 , months : 12 } ) ;
1260
1269
equal ( added . monthCode , date . monthCode ) ;
0 commit comments