]>
git.saurik.com Git - apple/icu.git/blob - icuSources/test/cintltst/creststn.h
1 // © 2016 and later: Unicode, Inc. and others.
2 // License & terms of use: http://www.unicode.org/copyright.html
3 /********************************************************************
5 * Copyright (c) 1997-2013, International Business Machines Corporation and
6 * others. All Rights Reserved.
7 ********************************************************************/
8 /***************************************************************************
12 * Modification History:
13 * Name Date Description
14 * Madhu Katragadda 05/09/2000 Ported Tests for New ResourceBundle API
15 * Madhu Katragadda 05/24/2000 Added new tests to test RES_BINARY for collationElements
16 *************************************************************************************************
21 #include "unicode/utypes.h"
22 #include "unicode/ures.h"
24 /* C TEST FOR NEW RESOURCEBUNDLE API*/
28 * Test wrapper for ures_getStringXYZ(), for testing other variants of
29 * these functions as well.
30 * If index>=0, calls ures_getStringByIndex().
31 * If key!=NULL, calls ures_getStringByKey().
34 tres_getString(const UResourceBundle
*resB
,
35 int32_t index
, const char *key
,
39 void addNEWResourceBundleTest(TestNode
**);
42 *Perform several extensive tests using the subtest routine testTag
44 static void TestResourceBundles(void);
46 * Test construction of ResourceBundle accessing a custom test resource-file
48 static void TestConstruction1(void);
50 static void TestAliasConflict(void);
52 static void TestFallback(void);
54 static void TestPreventFallback(void);
56 static void TestBinaryCollationData(void);
58 static void TestNewTypes(void);
60 static void TestEmptyTypes(void);
62 static void TestAPI(void);
64 static void TestErrorConditions(void);
66 static void TestGetVersion(void);
68 static void TestGetVersionColl(void);
70 static void TestEmptyBundle(void);
72 static void TestDirectAccess(void);
74 static void TestTicket9804(void);
76 static void TestResourceLevelAliasing(void);
78 static void TestErrorCodes(void);
80 static void TestJB3763(void);
82 static void TestXPath(void);
84 static void TestStackReuse(void);
87 * extensive subtests called by TestResourceBundles
89 static UBool
testTag(const char* frag
, UBool in_Root
, UBool in_te
, UBool in_te_IN
);
91 static void record_pass(void);
92 static void record_fail(void);