Home
last modified time | relevance | path

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

/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/
DIBMCalendarTest.java1617 int yrBefore, yrAfter, yrMax, eraAfter, eraMax, eraNow; in TestAddRollEra0AndEraBounds() local
1726 eraNow = ucalTest.get(Calendar.ERA); in TestAddRollEra0AndEraBounds()
1727 if (eraNow > 1) { in TestAddRollEra0AndEraBounds()
1730 ucalTest.set(Calendar.ERA, eraNow); in TestAddRollEra0AndEraBounds()
1737 if (eraAfter != eraNow || yrAfter != 1) { in TestAddRollEra0AndEraBounds()
1738 errln("Fail: era " + eraNow + in TestAddRollEra0AndEraBounds()
1742 } else if (eraAfter != eraNow || yrAfter != yrMax) { in TestAddRollEra0AndEraBounds()
1743 errln("Fail: era " + eraNow + in TestAddRollEra0AndEraBounds()
1750 if (eraAfter != eraNow || yrAfter != 1) { in TestAddRollEra0AndEraBounds()
1751 errln("Fail: era " + eraNow + " roll 1 year from year " + yrMax + in TestAddRollEra0AndEraBounds()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/calendar/
DIBMCalendarTest.java1620 int yrBefore, yrAfter, yrMax, eraAfter, eraMax, eraNow; in TestAddRollEra0AndEraBounds() local
1729 eraNow = ucalTest.get(Calendar.ERA); in TestAddRollEra0AndEraBounds()
1730 if (eraNow > 1) { in TestAddRollEra0AndEraBounds()
1733 ucalTest.set(Calendar.ERA, eraNow); in TestAddRollEra0AndEraBounds()
1740 if (eraAfter != eraNow || yrAfter != 1) { in TestAddRollEra0AndEraBounds()
1741 errln("Fail: era " + eraNow + in TestAddRollEra0AndEraBounds()
1745 } else if (eraAfter != eraNow || yrAfter != yrMax) { in TestAddRollEra0AndEraBounds()
1746 errln("Fail: era " + eraNow + in TestAddRollEra0AndEraBounds()
1753 if (eraAfter != eraNow || yrAfter != 1) { in TestAddRollEra0AndEraBounds()
1754 errln("Fail: era " + eraNow + " roll 1 year from year " + yrMax + in TestAddRollEra0AndEraBounds()
/external/icu/icu4c/source/test/cintltst/
Dccaltst.c2127 int32_t yrBefore, yrAfter, yrMax, eraAfter, eraMax, eraNow; in TestAddRollEra0AndEraBounds() local
2272 eraNow = ucal_get(ucalTest, UCAL_ERA, &status); in TestAddRollEra0AndEraBounds()
2273 if ( U_SUCCESS(status) && eraNow > 1 ) { in TestAddRollEra0AndEraBounds()
2277 ucal_set(ucalTest, UCAL_ERA, eraNow); in TestAddRollEra0AndEraBounds()
2284 eraNow, eraTestItemPtr->locale, u_errorName(status)); in TestAddRollEra0AndEraBounds()
2287 if (eraAfter != eraNow || yrAfter != 1) { in TestAddRollEra0AndEraBounds()
2289 eraNow, eraTestItemPtr->locale, eraAfter, yrAfter); in TestAddRollEra0AndEraBounds()
2291 } else if (eraAfter != eraNow || yrAfter != yrMax) { in TestAddRollEra0AndEraBounds()
2293 eraNow, yrMax, eraTestItemPtr->locale, eraAfter, yrAfter); in TestAddRollEra0AndEraBounds()
2301 eraNow, eraTestItemPtr->locale, u_errorName(status)); in TestAddRollEra0AndEraBounds()
[all …]