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 | 1614 int yrBefore, yrAfter, yrMax, eraAfter, eraMax, eraNow; in TestAddRollEra0AndEraBounds() local 1723 eraNow = ucalTest.get(Calendar.ERA); in TestAddRollEra0AndEraBounds() 1724 if (eraNow > 1) { in TestAddRollEra0AndEraBounds() 1727 ucalTest.set(Calendar.ERA, eraNow); in TestAddRollEra0AndEraBounds() 1734 if (eraAfter != eraNow || yrAfter != 1) { in TestAddRollEra0AndEraBounds() 1735 errln("Fail: era " + eraNow + in TestAddRollEra0AndEraBounds() 1739 } else if (eraAfter != eraNow || yrAfter != yrMax) { in TestAddRollEra0AndEraBounds() 1740 errln("Fail: era " + eraNow + in TestAddRollEra0AndEraBounds() 1747 if (eraAfter != eraNow || yrAfter != 1) { in TestAddRollEra0AndEraBounds() 1748 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 | 1613 int yrBefore, yrAfter, yrMax, eraAfter, eraMax, eraNow; in TestAddRollEra0AndEraBounds() local 1722 eraNow = ucalTest.get(Calendar.ERA); in TestAddRollEra0AndEraBounds() 1723 if (eraNow > 1) { in TestAddRollEra0AndEraBounds() 1726 ucalTest.set(Calendar.ERA, eraNow); in TestAddRollEra0AndEraBounds() 1733 if (eraAfter != eraNow || yrAfter != 1) { in TestAddRollEra0AndEraBounds() 1734 errln("Fail: era " + eraNow + in TestAddRollEra0AndEraBounds() 1738 } else if (eraAfter != eraNow || yrAfter != yrMax) { in TestAddRollEra0AndEraBounds() 1739 errln("Fail: era " + eraNow + in TestAddRollEra0AndEraBounds() 1746 if (eraAfter != eraNow || yrAfter != 1) { in TestAddRollEra0AndEraBounds() 1747 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 …]
|