Lines Matching refs:ucalTest
2088 UCalendar *ucalTest = ucal_open(zoneGMT, -1, eraTestItemPtr->locale, UCAL_DEFAULT, &status); in TestAddRollEra0AndEraBounds() local
2093 ucal_clear(ucalTest); in TestAddRollEra0AndEraBounds()
2094 ucal_set(ucalTest, UCAL_YEAR, 2); in TestAddRollEra0AndEraBounds()
2095 ucal_set(ucalTest, UCAL_ERA, 0); in TestAddRollEra0AndEraBounds()
2096 yrBefore = ucal_get(ucalTest, UCAL_YEAR, &status); in TestAddRollEra0AndEraBounds()
2097 ucal_add(ucalTest, UCAL_YEAR, 1, &status); in TestAddRollEra0AndEraBounds()
2098 yrAfter = ucal_get(ucalTest, UCAL_YEAR, &status); in TestAddRollEra0AndEraBounds()
2108 ucal_clear(ucalTest); in TestAddRollEra0AndEraBounds()
2109 ucal_set(ucalTest, UCAL_YEAR, 2); in TestAddRollEra0AndEraBounds()
2110 ucal_set(ucalTest, UCAL_ERA, 0); in TestAddRollEra0AndEraBounds()
2111 yrBefore = ucal_get(ucalTest, UCAL_YEAR, &status); in TestAddRollEra0AndEraBounds()
2112 ucal_roll(ucalTest, UCAL_YEAR, 1, &status); in TestAddRollEra0AndEraBounds()
2113 yrAfter = ucal_get(ucalTest, UCAL_YEAR, &status); in TestAddRollEra0AndEraBounds()
2123 ucal_clear(ucalTest); in TestAddRollEra0AndEraBounds()
2124 ucal_set(ucalTest, UCAL_YEAR, 1); in TestAddRollEra0AndEraBounds()
2125 ucal_set(ucalTest, UCAL_ERA, 0); in TestAddRollEra0AndEraBounds()
2127 … ucal_roll(ucalTest, UCAL_YEAR, 1, &status); /* roll forward in time to era 0 boundary */ in TestAddRollEra0AndEraBounds()
2128 yrAfter = ucal_get(ucalTest, UCAL_YEAR, &status); in TestAddRollEra0AndEraBounds()
2129 eraAfter = ucal_get(ucalTest, UCAL_ERA, &status); in TestAddRollEra0AndEraBounds()
2141 const char * calType = ucal_getType(ucalTest, &status); in TestAddRollEra0AndEraBounds()
2142 ucal_roll(ucalTest, UCAL_YEAR, -2, &status); in TestAddRollEra0AndEraBounds()
2143 yrAfter = ucal_get(ucalTest, UCAL_YEAR, &status); in TestAddRollEra0AndEraBounds()
2144 eraAfter = ucal_get(ucalTest, UCAL_ERA, &status); in TestAddRollEra0AndEraBounds()
2155 ucal_clear(ucalTest); in TestAddRollEra0AndEraBounds()
2157 int32_t eraMin = ucal_getLimit(ucalTest, UCAL_ERA, UCAL_MINIMUM, &status); in TestAddRollEra0AndEraBounds()
2158 const char * calType = ucal_getType(ucalTest, &status); in TestAddRollEra0AndEraBounds()
2165 ucal_clear(ucalTest); in TestAddRollEra0AndEraBounds()
2166 ucal_set(ucalTest, UCAL_YEAR, 1); in TestAddRollEra0AndEraBounds()
2167 ucal_set(ucalTest, UCAL_ERA, 0); in TestAddRollEra0AndEraBounds()
2168 eraMax = ucal_getLimit(ucalTest, UCAL_ERA, UCAL_MAXIMUM, &status); in TestAddRollEra0AndEraBounds()
2172 ucal_clear(ucalTest); in TestAddRollEra0AndEraBounds()
2173 ucal_set(ucalTest, UCAL_YEAR, 2); in TestAddRollEra0AndEraBounds()
2174 ucal_set(ucalTest, UCAL_ERA, 1); in TestAddRollEra0AndEraBounds()
2175 yrBefore = ucal_get(ucalTest, UCAL_YEAR, &status); in TestAddRollEra0AndEraBounds()
2176 ucal_add(ucalTest, UCAL_YEAR, 1, &status); in TestAddRollEra0AndEraBounds()
2177 yrAfter = ucal_get(ucalTest, UCAL_YEAR, &status); in TestAddRollEra0AndEraBounds()
2186 ucal_clear(ucalTest); in TestAddRollEra0AndEraBounds()
2187 ucal_set(ucalTest, UCAL_YEAR, 2); in TestAddRollEra0AndEraBounds()
2188 ucal_set(ucalTest, UCAL_ERA, 1); in TestAddRollEra0AndEraBounds()
2189 yrBefore = ucal_get(ucalTest, UCAL_YEAR, &status); in TestAddRollEra0AndEraBounds()
2190 ucal_roll(ucalTest, UCAL_YEAR, 1, &status); in TestAddRollEra0AndEraBounds()
2191 yrAfter = ucal_get(ucalTest, UCAL_YEAR, &status); in TestAddRollEra0AndEraBounds()
2200 ucal_clear(ucalTest); in TestAddRollEra0AndEraBounds()
2201 ucal_set(ucalTest, UCAL_YEAR, 1); in TestAddRollEra0AndEraBounds()
2202 ucal_set(ucalTest, UCAL_ERA, 1); in TestAddRollEra0AndEraBounds()
2203 …yrMax = ucal_getLimit(ucalTest, UCAL_YEAR, UCAL_ACTUAL_MAXIMUM, &status); /* max year value for er… in TestAddRollEra0AndEraBounds()
2204 … ucal_roll(ucalTest, UCAL_YEAR, -1, &status); /* roll down which should pin or wrap to end */ in TestAddRollEra0AndEraBounds()
2205 yrAfter = ucal_get(ucalTest, UCAL_YEAR, &status); in TestAddRollEra0AndEraBounds()
2206 eraAfter = ucal_get(ucalTest, UCAL_ERA, &status); in TestAddRollEra0AndEraBounds()
2221 … ucal_roll(ucalTest, UCAL_YEAR, 1, &status); /* now roll up which should wrap to beginning */ in TestAddRollEra0AndEraBounds()
2222 yrAfter = ucal_get(ucalTest, UCAL_YEAR, &status); in TestAddRollEra0AndEraBounds()
2223 eraAfter = ucal_get(ucalTest, UCAL_ERA, &status); in TestAddRollEra0AndEraBounds()
2234 ucal_setMillis(ucalTest, ucal_getNow(), &status); in TestAddRollEra0AndEraBounds()
2235 eraNow = ucal_get(ucalTest, UCAL_ERA, &status); in TestAddRollEra0AndEraBounds()
2238 ucal_clear(ucalTest); in TestAddRollEra0AndEraBounds()
2239 ucal_set(ucalTest, UCAL_YEAR, 1); in TestAddRollEra0AndEraBounds()
2240 ucal_set(ucalTest, UCAL_ERA, eraNow); in TestAddRollEra0AndEraBounds()
2241 …yrMax = ucal_getLimit(ucalTest, UCAL_YEAR, UCAL_ACTUAL_MAXIMUM, &status); /* max year value for th… in TestAddRollEra0AndEraBounds()
2242 ucal_roll(ucalTest, UCAL_YEAR, -1, &status); in TestAddRollEra0AndEraBounds()
2243 yrAfter = ucal_get(ucalTest, UCAL_YEAR, &status); in TestAddRollEra0AndEraBounds()
2244 eraAfter = ucal_get(ucalTest, UCAL_ERA, &status); in TestAddRollEra0AndEraBounds()
2259 … ucal_roll(ucalTest, UCAL_YEAR, 1, &status); /* now roll up which should wrap to beginning */ in TestAddRollEra0AndEraBounds()
2260 yrAfter = ucal_get(ucalTest, UCAL_YEAR, &status); in TestAddRollEra0AndEraBounds()
2261 eraAfter = ucal_get(ucalTest, UCAL_ERA, &status); in TestAddRollEra0AndEraBounds()
2273 ucal_close(ucalTest); in TestAddRollEra0AndEraBounds()