2 **********************************************************************
3 * Copyright (c) 2011-2012,International Business Machines
4 * Corporation and others. All Rights Reserved.
5 **********************************************************************
11 #include "unicode/utimer.h"
13 #include "unicode/ustring.h"
14 #include "unicode/decimfmt.h"
15 #include "unicode/udat.h"
17 #if U_PLATFORM_IMPLEMENTS_POSIX
20 static void usage(const char *prog
) {
21 fprintf(stderr
, "Usage: %s [ -f outfile.xml ] [ -t 'TestName' ]\n", prog
);
33 UErrorCode setupStatus
= U_ZERO_ERROR
;
34 const char *outName
= NULL
;
36 const char *testName
= NULL
;
37 const char *progname
= NULL
;
41 int testMatch(const char *aName
) {
42 if(testName
==NULL
) return 1;
43 int len
= strlen(testName
);
44 if(testName
[len
-1]=='*') {
45 return strncmp(testName
,aName
,len
-1);
47 return strcmp(testName
,aName
);
51 int main(int argc
, char * const * argv
){
53 fprintf(stderr
,"%s: warning: U_DEBUG is on.\n", argv
[0]);
58 double s
= uprv_getSieveTime(&m
);
59 fprintf(stderr
, "** Standard sieve time: %.9fs +/- %.9fs (%d iterations)\n", s
,m
, (int)U_LOTS_OF_TIMES
);
63 #if U_PLATFORM_IMPLEMENTS_POSIX
67 while((c
=getopt(argc
,argv
,"lf:t:")) != EOF
) {
86 /* for ( ; optind < argc; optind++) { ... argv[optind] } */
91 fprintf(stderr
, "Err: usage: %s [ output-file.xml ]\n", argv
[0]);
95 if(listmode
&& outName
!= NULL
) {
96 fprintf(stderr
, "Warning: no output when list mode\n");
100 if(outName
!= NULL
) {
103 out
=fopen(outName
,"w");
105 fprintf(stderr
,"Err: can't open %s for writing.\n", outName
);
108 fprintf(stderr
, "# writing results to %s\n", outName
);
110 fprintf(out
, "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n");
111 fprintf(out
, "<tests icu=\"%s\">\n", U_ICU_VERSION
);
112 fprintf(out
, "<!-- %s -->\n", U_COPYRIGHT_STRING
);
114 fprintf(stderr
, "# (no output)\n");
117 if(listmode
&& testName
!=NULL
) {
118 fprintf(stderr
, "ERR: no -l mode when specific test with -t\n");
129 udbg_writeIcuInfo(out
);
131 fprintf(out
, "</tests>\n");
135 if(U_FAILURE(setupStatus
)) {
136 fprintf(stderr
, "Error in tests: %s\n", u_errorName(setupStatus
));
143 class HowExpensiveTest
{
145 virtual ~HowExpensiveTest(){}
147 HowExpensiveTest(const char *name
, const char *file
, int32_t line
) : fName(name
), fFile(file
), fLine(line
) {}
150 * @return number of iterations
152 virtual int32_t run() = 0;
153 virtual void warmup() { run(); }
155 virtual const char *getName() { return fName
; }
157 virtual int32_t runTest(double *subTime
) {
160 int32_t iter
= run();
162 *subTime
= utimer_getDeltaSeconds(&a
,&b
);
166 virtual int32_t runTests(double *subTime
, double *marginOfError
) {
167 warmup(); /* warmup */
168 double times
[ITERATIONS
];
169 int subIterations
= 0;
170 for(int i
=0;i
<ITERATIONS
;i
++) {
171 subIterations
= runTest(×
[i
]);
173 fprintf(stderr
, "trial: %d/%d = %.9fs\n", i
, ITERATIONS
,times
[i
]);
177 uint32_t iterations
= ITERATIONS
;
178 *subTime
= uprv_getMeanTime(times
,&iterations
,marginOfError
);
179 return subIterations
;
188 void runTestOn(HowExpensiveTest
&t
) {
189 if(U_FAILURE(setupStatus
)) return; // silently
190 const char *tn
= t
.getName();
191 if(testName
!=NULL
&& testMatch(tn
)) return; // skipped.
193 fprintf(stderr
, "%s:%d:\t%s\n", t
.fFile
, t
.fLine
, t
.getName());
197 fprintf(stderr
, "%s:%d: Running: %s\n", t
.fFile
, t
.fLine
, t
.getName());
200 double sieveTime
= uprv_getSieveTime(NULL
);
206 int32_t iter
= t
.runTests(&st
,&me
);
207 if(U_FAILURE(setupStatus
)) {
208 fprintf(stderr
, "Error in tests: %s\n", u_errorName(setupStatus
));
214 double stn
= st
/sieveTime
;
216 printf("%s\t%.9f\t%.9f +/- %.9f, @ %d iter\n", t
.getName(),stn
,st
,me
,iter
);
219 fprintf(out
, " <test name=\"%s\" standardizedTime=\"%f\" realDuration=\"%f\" marginOfError=\"%f\" iterations=\"%d\" />\n",
225 /* ------------------- test code here --------------------- */
227 class SieveTest
: public HowExpensiveTest
{
229 virtual ~SieveTest(){}
230 SieveTest():HowExpensiveTest("SieveTest",__FILE__
,__LINE__
){}
231 virtual int32_t run(){return 0;} // dummy
232 int32_t runTest(double *subTime
) {
233 *subTime
= uprv_getSieveTime(NULL
);
234 return U_LOTS_OF_TIMES
;
236 virtual int32_t runTests(double *subTime
, double *marginOfError
) {
237 *subTime
= uprv_getSieveTime(marginOfError
);
238 return U_LOTS_OF_TIMES
;
243 /* ------- NumParseTest ------------- */
244 #include "unicode/unum.h"
245 /* open and close tests */
246 #define OCName(svc,ub,testn,suffix,n) testn ## svc ## ub ## suffix ## n
247 #define OCStr(svc,ub,suffix,n) "Test_" # svc # ub # suffix # n
248 #define OCRun(svc,ub,suffix) svc ## ub ## suffix
249 // TODO: run away screaming
250 #define OpenCloseTest(n, svc,suffix,c,a,d) class OCName(svc,_,Test_,suffix,n) : public HowExpensiveTest { public: OCName(svc,_,Test_,suffix,n)():HowExpensiveTest(OCStr(svc,_,suffix,n),__FILE__,__LINE__) c int32_t run() { int32_t i; for(i=0;i<U_LOTS_OF_TIMES;i++){ OCRun(svc,_,close) ( OCRun(svc,_,suffix) a ); } return i; } void warmup() { OCRun(svc,_,close) ( OCRun(svc,_,suffix) a); } virtual ~ OCName(svc,_,Test_,suffix,n) () d };
251 #define QuickTest(n,c,r,d) class n : public HowExpensiveTest { public: n():HowExpensiveTest(#n,__FILE__,__LINE__) c int32_t run() r virtual ~n () d };
253 class NumTest
: public HowExpensiveTest
{
258 UnicodeString fString
;
267 virtual const char *getName() {
269 sprintf(name
,"%s:p=|%s|,str=|%s|",getClassName(),fCPat
,fCStr
);
274 virtual UNumberFormat
* initFmt() {
275 return unum_open(UNUM_PATTERN_DECIMAL
, fPat
.getTerminatedBuffer(), -1, "en_US", 0, &setupStatus
);
277 virtual const char *getClassName() {
281 NumTest(const char *pat
, const char *num
, double expect
, const char *FILE, int LINE
)
282 : HowExpensiveTest("(n/a)",FILE, LINE
),
285 fPat(pat
, -1, US_INV
),
286 fString(num
,-1,US_INV
),
287 fStr(fString
.getTerminatedBuffer()),
288 fLen(u_strlen(fStr
)),
298 if(U_SUCCESS(setupStatus
)) {
299 double trial
= unum_parseDouble(fFmt
,fStr
,fLen
, NULL
, &setupStatus
);
300 if(U_SUCCESS(setupStatus
) && trial
!=fExpect
) {
301 setupStatus
= U_INTERNAL_PROGRAM_ERROR
;
302 printf("%s:%d: warmup() %s got %.8f expected %.8f\n",
303 fFile
,fLine
,getName(),trial
,fExpect
);
310 for(i
=0;i
<U_LOTS_OF_TIMES
;i
++){
311 trial
= unum_parse(fFmt
,fStr
,fLen
, NULL
, &setupStatus
);
318 #define DO_NumTest(p,n,x) { NumTest t(p,n,x,__FILE__,__LINE__); runTestOn(t); }
321 class AttrNumTest
: public NumTest
324 UNumberFormatAttribute fAttr
;
328 virtual const char *getClassName() {
329 sprintf(name2
,"AttrNumTest:%d=%d", fAttr
,fAttrValue
);
333 AttrNumTest(const char *pat
, const char *num
, double expect
, const char *FILE, int LINE
, UNumberFormatAttribute attr
, int32_t newValue
)
334 : NumTest(pat
,num
,expect
,FILE,LINE
),
339 virtual UNumberFormat
* initFmt() {
340 UNumberFormat
*fmt
= NumTest::initFmt();
341 unum_setAttribute(fmt
, fAttr
,fAttrValue
);
346 #define DO_AttrNumTest(p,n,x,a,v) { AttrNumTest t(p,n,x,__FILE__,__LINE__,a,v); runTestOn(t); }
349 class NOXNumTest
: public NumTest
352 UNumberFormatAttribute fAttr
;
356 virtual const char *getClassName() {
357 sprintf(name2
,"NOXNumTest:%d=%d", fAttr
,fAttrValue
);
361 NOXNumTest(const char *pat
, const char *num
, double expect
, const char *FILE, int LINE
/*, UNumberFormatAttribute attr, int32_t newValue */)
362 : NumTest(pat
,num
,expect
,FILE,LINE
) /* ,
364 fAttrValue(newValue) */
367 virtual UNumberFormat
* initFmt() {
368 UNumberFormat
*fmt
= NumTest::initFmt();
369 //unum_setAttribute(fmt, fAttr,fAttrValue);
374 #define DO_NOXNumTest(p,n,x) { NOXNumTest t(p,n,x,__FILE__,__LINE__); runTestOn(t); }
376 #define DO_TripleNumTest(p,n,x) DO_AttrNumTest(p,n,x,UNUM_PARSE_ALL_INPUT,UNUM_YES) \
377 DO_AttrNumTest(p,n,x,UNUM_PARSE_ALL_INPUT,UNUM_NO) \
378 DO_AttrNumTest(p,n,x,UNUM_PARSE_ALL_INPUT,UNUM_MAYBE)
381 class NumFmtTest
: public HowExpensiveTest
{
386 UnicodeString fString
;
395 virtual const char *getName() {
397 sprintf(name
,"%s:p=|%s|,str=|%s|",getClassName(),fCPat
,fCStr
);
402 virtual UNumberFormat
* initFmt() {
403 return unum_open(UNUM_PATTERN_DECIMAL
, fPat
.getTerminatedBuffer(), -1, "en_US", 0, &setupStatus
);
405 virtual const char *getClassName() {
409 NumFmtTest(const char *pat
, const char *num
, double expect
, const char *FILE, int LINE
)
410 : HowExpensiveTest("(n/a)",FILE, LINE
),
413 fPat(pat
, -1, US_INV
),
414 fString(num
,-1,US_INV
),
415 fStr(fString
.getTerminatedBuffer()),
416 fLen(u_strlen(fStr
)),
427 if(U_SUCCESS(setupStatus
)) {
428 int32_t trial
= unum_formatDouble(fFmt
,fExpect
, buf
, 100, NULL
, &setupStatus
);
429 if(!U_SUCCESS(setupStatus
)
432 || u_strncmp(fStr
,buf
,trial
) ) {
434 u_strToUTF8(strBuf
,200,NULL
,buf
,trial
+1,&setupStatus
);
435 printf("%s:%d: warmup() %s got %s expected %s, err %s\n",
436 fFile
,fLine
,getName(),strBuf
,fCStr
, u_errorName(setupStatus
));
437 setupStatus
= U_INTERNAL_PROGRAM_ERROR
;
445 if(U_SUCCESS(setupStatus
)) {
446 for(i
=0;i
<U_LOTS_OF_TIMES
;i
++){
447 trial
= unum_formatDouble(fFmt
,fExpect
, buf
, 100, NULL
, &setupStatus
);
452 virtual ~NumFmtTest(){}
455 #define DO_NumFmtTest(p,n,x) { NumFmtTest t(p,n,x,__FILE__,__LINE__); runTestOn(t); }
458 class NumFmtInt64Test
: public HowExpensiveTest
{
463 UnicodeString fString
;
472 virtual const char *getName() {
474 sprintf(name
,"%s:p=|%s|,str=|%s|",getClassName(),fCPat
,fCStr
);
479 virtual UNumberFormat
* initFmt() {
480 return unum_open(UNUM_PATTERN_DECIMAL
, fPat
.getTerminatedBuffer(), -1, "en_US", 0, &setupStatus
);
482 virtual const char *getClassName() {
483 return "NumFmtInt64Test";
486 NumFmtInt64Test(const char *pat
, const char *num
, int64_t expect
, const char *FILE, int LINE
)
487 : HowExpensiveTest("(n/a)",FILE, LINE
),
490 fPat(pat
, -1, US_INV
),
491 fString(num
,-1,US_INV
),
492 fStr(fString
.getTerminatedBuffer()),
493 fLen(u_strlen(fStr
)),
504 if(U_SUCCESS(setupStatus
)) {
505 int32_t trial
= unum_formatInt64(fFmt
,fExpect
, buf
, 100, NULL
, &setupStatus
);
506 if(!U_SUCCESS(setupStatus
)
509 || u_strncmp(fStr
,buf
,trial
) ) {
511 u_strToUTF8(strBuf
,200,NULL
,buf
,trial
+1,&setupStatus
);
512 printf("%s:%d: warmup() %s got %s (len %d) expected %s (len %d), err %s\n",
513 fFile
,fLine
,getName(),strBuf
,trial
,fCStr
,fLen
, u_errorName(setupStatus
));
514 setupStatus
= U_INTERNAL_PROGRAM_ERROR
;
522 if(U_SUCCESS(setupStatus
)) {
523 for(i
=0;i
<U_LOTS_OF_TIMES
;i
++){
524 trial
= unum_formatInt64(fFmt
,fExpect
, buf
, 100, NULL
, &setupStatus
);
529 virtual ~NumFmtInt64Test(){}
532 #define DO_NumFmtInt64Test(p,n,x) { NumFmtInt64Test t(p,n,x,__FILE__,__LINE__); runTestOn(t); }
535 class NumFmtStringPieceTest
: public HowExpensiveTest
{
537 const StringPiece
&fExpect
;
540 UnicodeString fString
;
549 virtual const char *getName() {
551 sprintf(name
,"%s:p=|%s|,str=|%s|,sp=|%s|",getClassName(),fCPat
,fCStr
, fExpect
.data());
556 virtual UNumberFormat
* initFmt() {
557 DecimalFormat
*d
= new DecimalFormat(setupStatus
);
559 d
->applyPattern(fPat
, pe
, setupStatus
);
560 return (UNumberFormat
*) d
;
562 virtual const char *getClassName() {
563 return "NumFmtStringPieceTest";
566 NumFmtStringPieceTest(const char *pat
, const char *num
, const StringPiece
& expect
, const char *FILE, int LINE
)
567 : HowExpensiveTest("(n/a)",FILE, LINE
),
570 fPat(pat
, -1, US_INV
),
571 fString(num
,-1,US_INV
),
572 fStr(fString
.getTerminatedBuffer()),
573 fLen(u_strlen(fStr
)),
584 if(U_SUCCESS(setupStatus
)) {
586 ((const DecimalFormat
*)fFmt
)->format(fExpect
, buf
, NULL
, setupStatus
);
587 if(!U_SUCCESS(setupStatus
)
591 u_strToUTF8(strBuf
,200,NULL
,buf
.getTerminatedBuffer(),buf
.length()+1,&setupStatus
);
592 printf("%s:%d: warmup() %s got %s (len %d) expected %s (len %d), err %s\n",
593 fFile
,fLine
,getName(),strBuf
,buf
.length(),fCStr
,fLen
, u_errorName(setupStatus
));
594 setupStatus
= U_INTERNAL_PROGRAM_ERROR
;
603 if(U_SUCCESS(setupStatus
)) {
604 for(i
=0;i
<U_LOTS_OF_TIMES
;i
++){
606 ((const DecimalFormat
*)fFmt
)->format(fExpect
, buf
, NULL
, setupStatus
);
611 virtual ~NumFmtStringPieceTest(){}
614 #define DO_NumFmtStringPieceTest(p,n,x) { NumFmtStringPieceTest t(p,n,x,__FILE__,__LINE__); runTestOn(t); }
616 // TODO: move, scope.
617 static UChar pattern
[] = { 0x23 }; // '#'
618 static UChar strdot
[] = { '2', '.', '0', 0 };
619 static UChar strspc
[] = { '2', ' ', 0 };
620 static UChar strgrp
[] = {'2',',','2','2','2', 0 };
621 static UChar strbeng
[] = {0x09E8,0x09E8,0x09E8,0x09E8, 0 };
623 UNumberFormat
*NumParseTest_fmt
;
626 QuickTest(NumParseTest
,{ static UChar pattern
[] = { 0x23 }; NumParseTest_fmt
= unum_open(UNUM_PATTERN_DECIMAL
, pattern
, 1, "en_US", 0, &setupStatus
); },{ int32_t i
; static UChar str
[] = { 0x31 };double val
; for(i
=0;i
<U_LOTS_OF_TIMES
;i
++) { val
=unum_parse(NumParseTest_fmt
,str
,1,NULL
,&setupStatus
); } return i
; },{unum_close(NumParseTest_fmt
);})
628 QuickTest(NumParseTestdot
,{ static UChar pattern
[] = { 0x23 }; NumParseTest_fmt
= unum_open(UNUM_PATTERN_DECIMAL
, pattern
, 1, "en_US", 0, &setupStatus
); },{ int32_t i
; double val
; for(i
=0;i
<U_LOTS_OF_TIMES
;i
++) { val
=unum_parse(NumParseTest_fmt
,strdot
,1,NULL
,&setupStatus
); } return i
; },{unum_close(NumParseTest_fmt
);})
629 QuickTest(NumParseTestspc
,{ static UChar pattern
[] = { 0x23 }; NumParseTest_fmt
= unum_open(UNUM_PATTERN_DECIMAL
, pattern
, 1, "en_US", 0, &setupStatus
); },{ int32_t i
; double val
; for(i
=0;i
<U_LOTS_OF_TIMES
;i
++) { val
=unum_parse(NumParseTest_fmt
,strspc
,1,NULL
,&setupStatus
); } return i
; },{unum_close(NumParseTest_fmt
);})
630 QuickTest(NumParseTestgrp
,{ static UChar pattern
[] = { 0x23 }; NumParseTest_fmt
= unum_open(UNUM_PATTERN_DECIMAL
, pattern
, 1, "en_US", 0, &setupStatus
); },{ int32_t i
; double val
; for(i
=0;i
<U_LOTS_OF_TIMES
;i
++) { val
=unum_parse(NumParseTest_fmt
,strgrp
,-1,NULL
,&setupStatus
); } return i
; },{unum_close(NumParseTest_fmt
);})
632 QuickTest(NumParseTestbeng
,{ static UChar pattern
[] = { 0x23 }; NumParseTest_fmt
= unum_open(UNUM_PATTERN_DECIMAL
, pattern
, 1, "en_US", 0, &setupStatus
); },{ int32_t i
; double val
; for(i
=0;i
<U_LOTS_OF_TIMES
;i
++) { val
=unum_parse(NumParseTest_fmt
,strbeng
,-1,NULL
,&setupStatus
); } return i
; },{unum_close(NumParseTest_fmt
);})
634 UDateFormat
*DateFormatTest_fmt
= NULL
;
635 UDate sometime
= 100000000.0;
637 const int32_t onekbuf_len
= sizeof(onekbuf
)/sizeof(onekbuf
[0]);
640 QuickTest(DateFormatTestBasic
, \
642 DateFormatTest_fmt
= udat_open(UDAT_DEFAULT
, UDAT_DEFAULT
, NULL
, NULL
, -1, NULL
, -1, &setupStatus
); \
646 for(i
=0;i
<U_LOTS_OF_TIMES
;i
++) \
648 udat_format(DateFormatTest_fmt
, sometime
, onekbuf
, onekbuf_len
, NULL
, &setupStatus
); \
653 udat_close(DateFormatTest_fmt
); \
658 QuickTest(NullTest
,{},{int j
=U_LOTS_OF_TIMES
;while(--j
);return U_LOTS_OF_TIMES
;},{})
663 QuickTest(RandomTest
,{},{timespec ts
; ts
.tv_sec
=rand()%4
; int j
=U_LOTS_OF_TIMES
;while(--j
) { ts
.tv_nsec
=100000+(rand()%10000
)*1000000; nanosleep(&ts
,NULL
); return j
;} return U_LOTS_OF_TIMES
;},{})
666 OpenCloseTest(pattern
,unum
,open
,{},(UNUM_PATTERN_DECIMAL
,pattern
,1,"en_US",0,&setupStatus
),{})
667 OpenCloseTest(default,unum
,open
,{},(UNUM_DEFAULT
,NULL
,-1,"en_US",0,&setupStatus
),{})
668 #if !UCONFIG_NO_CONVERSION
669 #include "unicode/ucnv.h"
670 OpenCloseTest(gb18030
,ucnv
,open
,{},("gb18030",&setupStatus
),{})
672 #include "unicode/ures.h"
673 OpenCloseTest(root
,ures
,open
,{},(NULL
,"root",&setupStatus
),{})
691 #ifndef SKIP_DATEFMT_TESTS
693 DateFormatTestBasic t
;
698 #ifndef SKIP_NUMPARSE_TESTS
702 DO_NumTest("#","0",0.0);
703 DO_NumTest("#","2.0",2.0);
704 DO_NumTest("#","2 ",2);
705 DO_NumTest("#","-2 ",-2);
706 DO_NumTest("+#","+2",2);
707 DO_NumTest("#,###.0","2222.0",2222.0);
708 DO_NumTest("#.0","1.000000000000000000000000000000000000000000000000000000000000000000000000000000",1.0);
709 DO_NumTest("#","123456",123456);
712 #ifdef HAVE_UNUM_MAYBE
713 DO_AttrNumTest("#","0",0.0,UNUM_PARSE_ALL_INPUT
,UNUM_YES
);
714 DO_AttrNumTest("#","0",0.0,UNUM_PARSE_ALL_INPUT
,UNUM_NO
);
715 DO_AttrNumTest("#","0",0.0,UNUM_PARSE_ALL_INPUT
,UNUM_MAYBE
);
716 DO_TripleNumTest("#","2.0",2.0);
717 DO_AttrNumTest("#.0","1.000000000000000000000000000000000000000000000000000000000000000000000000000000",1.0,UNUM_PARSE_ALL_INPUT
,UNUM_NO
);
721 // { NumParseTestgrp t; runTestOn(t); }
722 { NumParseTestbeng t
; runTestOn(t
); }
727 #ifndef SKIP_NUMFORMAT_TESTS
731 DO_NumFmtInt64Test("0000","0001",1);
732 DO_NumFmtInt64Test("0000","0000",0);
733 StringPiece
sp3456("3456");
734 DO_NumFmtStringPieceTest("0000","3456",sp3456
);
735 DO_NumFmtStringPieceTest("#","3456",sp3456
);
736 StringPiece
sp3("3");
737 DO_NumFmtStringPieceTest("0000","0003",sp3
);
738 DO_NumFmtStringPieceTest("#","3",sp3
);
739 StringPiece
spn3("-3");
740 DO_NumFmtStringPieceTest("0000","-0003",spn3
);
741 DO_NumFmtStringPieceTest("#","-3",spn3
);
742 StringPiece
spPI("123.456");
743 DO_NumFmtStringPieceTest("#.0000","123.4560",spPI
);
744 DO_NumFmtStringPieceTest("#.00","123.46",spPI
);
746 DO_NumFmtTest("#","0",0.0);
747 DO_NumFmtTest("#","12345",12345);
748 DO_NumFmtTest("#","-2",-2);
749 DO_NumFmtTest("+#","+2",2);
750 DO_NumFmtInt64Test("#","-682",-682);
751 DO_NumFmtInt64Test("#","0",0);
752 DO_NumFmtInt64Test("#","12345",12345);
753 DO_NumFmtInt64Test("#","1234",1234);
754 DO_NumFmtInt64Test("#","123",123);
755 DO_NumFmtInt64Test("#","-2",-2);
756 DO_NumFmtInt64Test("+#","+2",2);
759 #ifndef SKIP_NUM_OPEN_TEST
761 Test_unum_opendefault t
;
765 Test_unum_openpattern t
;
770 #endif /* skip numformat tests */
771 #if !UCONFIG_NO_CONVERSION
773 Test_ucnv_opengb18030 t
;
778 Test_ures_openroot t
;
783 fprintf(stderr
, "ERROR: no tests matched.\n");