Lines Matching refs:setupStatus
42 UErrorCode setupStatus = U_ZERO_ERROR; variable
144 if(U_FAILURE(setupStatus)) { in main()
145 fprintf(stderr, "Error in tests: %s\n", u_errorName(setupStatus)); in main()
198 if(U_FAILURE(setupStatus)) return; // silently in runTestOn()
216 if(U_FAILURE(setupStatus)) { in runTestOn()
217 fprintf(stderr, "Error in tests: %s\n", u_errorName(setupStatus)); in runTestOn()
284 …turn unum_open(UNUM_PATTERN_DECIMAL, fPat.getTerminatedBuffer(), -1, TEST_LOCALE, 0, &setupStatus); in initFmt()
307 if(U_SUCCESS(setupStatus)) { in warmup()
308 double trial = unum_parseDouble(fFmt,fStr,fLen, NULL, &setupStatus); in warmup()
309 if(U_SUCCESS(setupStatus) && trial!=fExpect) { in warmup()
310 setupStatus = U_INTERNAL_PROGRAM_ERROR; in warmup()
320 trial = unum_parse(fFmt,fStr,fLen, NULL, &setupStatus); in run()
412 …turn unum_open(UNUM_PATTERN_DECIMAL, fPat.getTerminatedBuffer(), -1, TEST_LOCALE, 0, &setupStatus); in initFmt()
436 if(U_SUCCESS(setupStatus)) { in warmup()
437 int32_t trial = unum_formatDouble(fFmt,fExpect, buf, 100, NULL, &setupStatus); in warmup()
438 if(!U_SUCCESS(setupStatus) in warmup()
443 u_strToUTF8(strBuf,200,NULL,buf,trial+1,&setupStatus); in warmup()
445 fFile,fLine,getName(),strBuf,fCStr, u_errorName(setupStatus)); in warmup()
446 setupStatus = U_INTERNAL_PROGRAM_ERROR; in warmup()
454 if(U_SUCCESS(setupStatus)) { in run()
456 trial = unum_formatDouble(fFmt,fExpect, buf, 100, NULL, &setupStatus); in run()
499 …turn unum_open(UNUM_PATTERN_DECIMAL, fPat.getTerminatedBuffer(), -1, TEST_LOCALE, 0, &setupStatus); in initFmt()
502 UNumberFormat *fmt = unum_open(UNUM_DECIMAL, NULL, -1, TEST_LOCALE, 0, &setupStatus); in initFmt()
503 unum_applyPattern(fmt, false, fPat.getTerminatedBuffer(), -1, NULL, &setupStatus); in initFmt()
508 …mt = unum_open(UNUM_PATTERN_DECIMAL, fPat.getTerminatedBuffer(), -1, TEST_LOCALE, 0, &setupStatus); in initFmt()
514 UNumberFormat *fmt = unum_open(UNUM_DECIMAL, NULL, -1, TEST_LOCALE, 0, &setupStatus); in initFmt()
515 unum_applyPattern(fmt, false, fPat.getTerminatedBuffer(), -1, NULL, &setupStatus); in initFmt()
521 return unum_open(UNUM_DEFAULT, NULL, -1, TEST_LOCALE, 0, &setupStatus); in initFmt()
560 if(U_SUCCESS(setupStatus)) { in warmup()
561 int32_t trial = unum_formatInt64(fFmt,fExpect, buf, 100, NULL, &setupStatus); in warmup()
562 if(!U_SUCCESS(setupStatus) in warmup()
567 u_strToUTF8(strBuf,200,NULL,buf,trial+1,&setupStatus); in warmup()
569 fFile,fLine,getName(),strBuf,trial,fCStr,fLen, u_errorName(setupStatus)); in warmup()
570 setupStatus = U_INTERNAL_PROGRAM_ERROR; in warmup()
578 if(U_SUCCESS(setupStatus)) { in run()
580 trial = unum_formatInt64(fFmt,fExpect, buf, 100, NULL, &setupStatus); in run()
624 DecimalFormat *d = new DecimalFormat(setupStatus); in initFmt()
626 d->applyPattern(fPat, pe, setupStatus); in initFmt()
651 if(U_SUCCESS(setupStatus)) { in warmup()
653 ((const DecimalFormat*)fFmt)->format(fExpect, buf, NULL, setupStatus); in warmup()
654 if(!U_SUCCESS(setupStatus) in warmup()
658 u_strToUTF8(strBuf,200,NULL,buf.getTerminatedBuffer(),buf.length()+1,&setupStatus); in warmup()
660 fFile,fLine,getName(),strBuf,buf.length(),fCStr,fLen, u_errorName(setupStatus)); in warmup()
661 setupStatus = U_INTERNAL_PROGRAM_ERROR; in warmup()
672 if(U_SUCCESS(setupStatus)) { in run()
675 ((const DecimalFormat*)fFmt)->format(fExpect, buf, NULL, setupStatus); in run()
695 …setupStatus); },{ int32_t i; static UChar str[] = { 0x31 };double val; for(i=0;i<U_LOTS_…
697 … &setupStatus); },{ int32_t i; double val; for(i=0;i<U_LOTS_OF_TIMES;i++) { val=unu…
698 … &setupStatus); },{ int32_t i; double val; for(i=0;i<U_LOTS_OF_TIMES;i++) { val=un…
699 … &setupStatus); },{ int32_t i; double val; for(i=0;i<U_LOTS_OF_TIMES;i++) { val=unu…
701 … &setupStatus); },{ int32_t i; double val; for(i=0;i<U_LOTS_OF_TIMES;i++) { val=unu…
711 …teFormatTest_fmt = udat_open(UDAT_DEFAULT, UDAT_DEFAULT, NULL, NULL, -1, NULL, -1, &setupStatus); \
717 udat_format(DateFormatTest_fmt, sometime, onekbuf, onekbuf_len, NULL, &setupStatus); \
735 OpenCloseTest(pattern,unum,open,{},(UNUM_PATTERN_DECIMAL,pattern,1,TEST_LOCALE,0,&setupStatus),{})
736 OpenCloseTest(default,unum,open,{},(UNUM_DEFAULT,NULL,-1,TEST_LOCALE,0,&setupStatus),{})
739 OpenCloseTest(gb18030,ucnv,open,{},("gb18030",&setupStatus),{})
742 OpenCloseTest(root,ures,open,{},(NULL,"root",&setupStatus),{})