Home
last modified time | relevance | path

Searched refs:eraNow (Results 1 – 2 of 2) sorted by relevance

/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/
DIBMCalendarTest.java1523 int yrBefore, yrAfter, yrMax, eraAfter, eraMax, eraNow; in TestAddRollEra0AndEraBounds() local
1632 eraNow = ucalTest.get(Calendar.ERA); in TestAddRollEra0AndEraBounds()
1633 if (eraNow > 1) { in TestAddRollEra0AndEraBounds()
1636 ucalTest.set(Calendar.ERA, eraNow); in TestAddRollEra0AndEraBounds()
1643 if (eraAfter != eraNow || yrAfter != 1) { in TestAddRollEra0AndEraBounds()
1644 errln("Fail: era " + eraNow + in TestAddRollEra0AndEraBounds()
1648 } else if (eraAfter != eraNow || yrAfter != yrMax) { in TestAddRollEra0AndEraBounds()
1649 errln("Fail: era " + eraNow + in TestAddRollEra0AndEraBounds()
1656 if (eraAfter != eraNow || yrAfter != 1) { in TestAddRollEra0AndEraBounds()
1657 errln("Fail: era " + eraNow + " roll 1 year from year " + yrMax + in TestAddRollEra0AndEraBounds()
/external/icu/icu4c/source/test/cintltst/
Dccaltst.c2090 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 …]