Searched refs:eraNow (Results 1 – 3 of 3) sorted by relevance
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/calendar/ |
D | IBMCalendarTest.java | 1619 int yrBefore, yrAfter, yrMax, eraAfter, eraMax, eraNow; in TestAddRollEra0AndEraBounds() local 1728 eraNow = ucalTest.get(Calendar.ERA); in TestAddRollEra0AndEraBounds() 1729 if (eraNow > 1) { in TestAddRollEra0AndEraBounds() 1732 ucalTest.set(Calendar.ERA, eraNow); in TestAddRollEra0AndEraBounds() 1739 if (eraAfter != eraNow || yrAfter != 1) { in TestAddRollEra0AndEraBounds() 1740 errln("Fail: era " + eraNow + in TestAddRollEra0AndEraBounds() 1744 } else if (eraAfter != eraNow || yrAfter != yrMax) { in TestAddRollEra0AndEraBounds() 1745 errln("Fail: era " + eraNow + in TestAddRollEra0AndEraBounds() 1752 if (eraAfter != eraNow || yrAfter != 1) { in TestAddRollEra0AndEraBounds() 1753 errln("Fail: era " + eraNow + " roll 1 year from year " + yrMax + in TestAddRollEra0AndEraBounds()
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/ |
D | IBMCalendarTest.java | 1616 int yrBefore, yrAfter, yrMax, eraAfter, eraMax, eraNow; in TestAddRollEra0AndEraBounds() local 1725 eraNow = ucalTest.get(Calendar.ERA); in TestAddRollEra0AndEraBounds() 1726 if (eraNow > 1) { in TestAddRollEra0AndEraBounds() 1729 ucalTest.set(Calendar.ERA, eraNow); in TestAddRollEra0AndEraBounds() 1736 if (eraAfter != eraNow || yrAfter != 1) { in TestAddRollEra0AndEraBounds() 1737 errln("Fail: era " + eraNow + in TestAddRollEra0AndEraBounds() 1741 } else if (eraAfter != eraNow || yrAfter != yrMax) { in TestAddRollEra0AndEraBounds() 1742 errln("Fail: era " + eraNow + in TestAddRollEra0AndEraBounds() 1749 if (eraAfter != eraNow || yrAfter != 1) { in TestAddRollEra0AndEraBounds() 1750 errln("Fail: era " + eraNow + " roll 1 year from year " + yrMax + in TestAddRollEra0AndEraBounds()
|
/external/icu/icu4c/source/test/cintltst/ |
D | ccaltst.c | 2098 int32_t yrBefore, yrAfter, yrMax, eraAfter, eraMax, eraNow; in TestAddRollEra0AndEraBounds() local 2243 eraNow = ucal_get(ucalTest, UCAL_ERA, &status); in TestAddRollEra0AndEraBounds() 2244 if ( U_SUCCESS(status) && eraNow > 1 ) { in TestAddRollEra0AndEraBounds() 2248 ucal_set(ucalTest, UCAL_ERA, eraNow); in TestAddRollEra0AndEraBounds() 2255 eraNow, eraTestItemPtr->locale, u_errorName(status)); in TestAddRollEra0AndEraBounds() 2258 if (eraAfter != eraNow || yrAfter != 1) { in TestAddRollEra0AndEraBounds() 2260 eraNow, eraTestItemPtr->locale, eraAfter, yrAfter); in TestAddRollEra0AndEraBounds() 2262 } else if (eraAfter != eraNow || yrAfter != yrMax) { in TestAddRollEra0AndEraBounds() 2264 eraNow, yrMax, eraTestItemPtr->locale, eraAfter, yrAfter); in TestAddRollEra0AndEraBounds() 2272 eraNow, eraTestItemPtr->locale, u_errorName(status)); in TestAddRollEra0AndEraBounds() [all …]
|