]>
git.saurik.com Git - apple/icu.git/blob - icuSources/test/cintltst/creststn.h
1 /********************************************************************
3 * Copyright (c) 1997-2013, International Business Machines Corporation and
4 * others. All Rights Reserved.
5 ********************************************************************/
6 /***************************************************************************
10 * Modification History:
11 * Name Date Description
12 * Madhu Katragadda 05/09/2000 Ported Tests for New ResourceBundle API
13 * Madhu Katragadda 05/24/2000 Added new tests to test RES_BINARY for collationElements
14 *************************************************************************************************
18 /* C TEST FOR NEW RESOURCEBUNDLE API*/
22 * Test wrapper for ures_getStringXYZ(), for testing other variants of
23 * these functions as well.
24 * If index>=0, calls ures_getStringByIndex().
25 * If key!=NULL, calls ures_getStringByKey().
28 tres_getString(const UResourceBundle
*resB
,
29 int32_t index
, const char *key
,
33 void addNEWResourceBundleTest(TestNode
**);
36 *Perform several extensive tests using the subtest routine testTag
38 static void TestResourceBundles(void);
40 * Test construction of ResourceBundle accessing a custom test resource-file
42 static void TestConstruction1(void);
44 static void TestAliasConflict(void);
46 static void TestFallback(void);
48 static void TestPreventFallback(void);
50 static void TestBinaryCollationData(void);
52 static void TestNewTypes(void);
54 static void TestEmptyTypes(void);
56 static void TestAPI(void);
58 static void TestErrorConditions(void);
60 static void TestGetVersion(void);
62 static void TestGetVersionColl(void);
64 static void TestEmptyBundle(void);
66 static void TestDirectAccess(void);
68 static void TestTicket9804(void);
70 static void TestResourceLevelAliasing(void);
72 static void TestErrorCodes(void);
74 static void TestJB3763(void);
76 static void TestXPath(void);
78 static void TestStackReuse(void);
81 * extensive subtests called by TestResourceBundles
83 static UBool
testTag(const char* frag
, UBool in_Root
, UBool in_te
, UBool in_te_IN
);
85 static void record_pass(void);
86 static void record_fail(void);