Searched refs:eraNow (Results 1 – 3 of 3) sorted by relevance
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/ |
D | IBMCalendarTest.java | 1571 int yrBefore, yrAfter, yrMax, eraAfter, eraMax, eraNow; in TestAddRollEra0AndEraBounds() local 1680 eraNow = ucalTest.get(Calendar.ERA); in TestAddRollEra0AndEraBounds() 1681 if (eraNow > 1) { in TestAddRollEra0AndEraBounds() 1684 ucalTest.set(Calendar.ERA, eraNow); in TestAddRollEra0AndEraBounds() 1691 if (eraAfter != eraNow || yrAfter != 1) { in TestAddRollEra0AndEraBounds() 1692 errln("Fail: era " + eraNow + in TestAddRollEra0AndEraBounds() 1696 } else if (eraAfter != eraNow || yrAfter != yrMax) { in TestAddRollEra0AndEraBounds() 1697 errln("Fail: era " + eraNow + in TestAddRollEra0AndEraBounds() 1704 if (eraAfter != eraNow || yrAfter != 1) { in TestAddRollEra0AndEraBounds() 1705 errln("Fail: era " + eraNow + " roll 1 year from year " + yrMax + in TestAddRollEra0AndEraBounds()
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/calendar/ |
D | IBMCalendarTest.java | 1575 int yrBefore, yrAfter, yrMax, eraAfter, eraMax, eraNow; in TestAddRollEra0AndEraBounds() local 1684 eraNow = ucalTest.get(Calendar.ERA); in TestAddRollEra0AndEraBounds() 1685 if (eraNow > 1) { in TestAddRollEra0AndEraBounds() 1688 ucalTest.set(Calendar.ERA, eraNow); in TestAddRollEra0AndEraBounds() 1695 if (eraAfter != eraNow || yrAfter != 1) { in TestAddRollEra0AndEraBounds() 1696 errln("Fail: era " + eraNow + in TestAddRollEra0AndEraBounds() 1700 } else if (eraAfter != eraNow || yrAfter != yrMax) { in TestAddRollEra0AndEraBounds() 1701 errln("Fail: era " + eraNow + in TestAddRollEra0AndEraBounds() 1708 if (eraAfter != eraNow || yrAfter != 1) { in TestAddRollEra0AndEraBounds() 1709 errln("Fail: era " + eraNow + " roll 1 year from year " + yrMax + in TestAddRollEra0AndEraBounds()
|
/external/icu/icu4c/source/test/cintltst/ |
D | ccaltst.c | 2090 int32_t yrBefore, yrAfter, yrMax, eraAfter, eraMax, eraNow; in TestAddRollEra0AndEraBounds() local 2235 eraNow = ucal_get(ucalTest, UCAL_ERA, &status); in TestAddRollEra0AndEraBounds() 2236 if ( U_SUCCESS(status) && eraNow > 1 ) { in TestAddRollEra0AndEraBounds() 2240 ucal_set(ucalTest, UCAL_ERA, eraNow); in TestAddRollEra0AndEraBounds() 2247 eraNow, eraTestItemPtr->locale, u_errorName(status)); in TestAddRollEra0AndEraBounds() 2250 if (eraAfter != eraNow || yrAfter != 1) { in TestAddRollEra0AndEraBounds() 2252 eraNow, eraTestItemPtr->locale, eraAfter, yrAfter); in TestAddRollEra0AndEraBounds() 2254 } else if (eraAfter != eraNow || yrAfter != yrMax) { in TestAddRollEra0AndEraBounds() 2256 eraNow, yrMax, eraTestItemPtr->locale, eraAfter, yrAfter); in TestAddRollEra0AndEraBounds() 2264 eraNow, eraTestItemPtr->locale, u_errorName(status)); in TestAddRollEra0AndEraBounds() [all …]
|