1 /********************************************************************
3 * Copyright (c) 1997-2013, International Business Machines Corporation and
4 * others. All Rights Reserved.
5 ********************************************************************/
7 #include "unicode/uniset.h"
10 /** Helper function for TestUnicodeData */
11 U_CFUNC
void U_CALLCONV
unicodeDataLineFn(void *context
,
12 char *fields
[][2], int32_t fieldCount
,
13 UErrorCode
*pErrorCode
);
15 U_CFUNC
void U_CALLCONV
16 derivedPropsLineFn(void *context
,
17 char *fields
[][2], int32_t fieldCount
,
18 UErrorCode
*pErrorCode
);
27 * Test API and functionality of class Unicode
29 class UnicodeTest
: public IntlTest
{
32 virtual ~UnicodeTest();
34 void runIndexedTest( int32_t index
, UBool exec
, const char* &name
, char* par
= NULL
);
36 void TestAdditionalProperties();
37 void TestBinaryValues();
38 void TestConsistency();
39 void TestPatternProperties();
40 void TestScriptMetadata();
44 friend void U_CALLCONV
unicodeDataLineFn(void *context
,
45 char *fields
[][2], int32_t fieldCount
,
46 UErrorCode
*pErrorCode
);
48 friend void U_CALLCONV
49 derivedPropsLineFn(void *context
,
50 char *fields
[][2], int32_t fieldCount
,
51 UErrorCode
*pErrorCode
);
53 UnicodeSet derivedProps
[30];
54 U_NAMESPACE_QUALIFIER Hashtable
*unknownPropertyNames
;
56 UBool
compareUSets(const UnicodeSet
&a
, const UnicodeSet
&b
,
57 const char *a_name
, const char *b_name
,