Lines Matching refs:ucal_roll
843 log_verbose("\nTesting to confirm that ucal_roll() works\n");
844 ucal_roll(cal, UCAL_DATE, -1, &status);
845 if (U_FAILURE(status)) { log_err("ucal_roll failed: %s\n", u_errorName(status) ); return; }
848 ucal_roll(cal, UCAL_MONTH, -2, &status);
849 if (U_FAILURE(status)) { log_err("ucal_roll failed: %s\n", u_errorName(status) ); return; }
852 ucal_roll(cal, UCAL_DATE, 1, &status);
853 if (U_FAILURE(status)) { log_err("ucal_roll failed: %s\n", u_errorName(status) ); return; }
856 ucal_roll(cal, UCAL_MONTH, -12, &status);
857 if (U_FAILURE(status)) { log_err("ucal_roll failed: %s\n", u_errorName(status) ); return; }
859 ucal_roll(cal, UCAL_YEAR, -1, &status);
860 if (U_FAILURE(status)) { log_err("ucal_roll failed: %s\n", u_errorName(status) ); return; }
863 ucal_roll(cal, UCAL_DATE, 29, &status);
864 if (U_FAILURE(status)) { log_err("ucal_roll failed: %s\n", u_errorName(status) ); return; }
867 ucal_roll(cal, (UCalendarDateFields)-1, 10, &status);
889 log_verbose("\nTesting the ucal_add() and ucal_roll() functions extensively\n");
923 log_verbose("\nTesting calendar ucal_roll()...\n");
928 ucal_roll(cal, e, 1, &status);
935 ucal_roll(cal, e, -1, &status);
937 log_err("ucal_roll -1 failed: %s\n", u_errorName(status));