ICU-832 Each test string does not need to be 128 UChars big.
Setting MAX_TOKEN_LEN to a lower limit takes out about 100K from the executable on Windows. If you need larger test string, you can raise the limit where it's needed. X-SVN-Rev: 4411
This commit is contained in:
parent
f2e4587c90
commit
c0ecb9aa96
@ -24,14 +24,9 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* static constants */
|
|
||||||
#define MAX_TOKEN_LEN 128
|
|
||||||
|
|
||||||
/* tests comparison of custom collation with different strengths */
|
/* tests comparison of custom collation with different strengths */
|
||||||
void doTest(UCollator*, const UChar* source, const UChar* target, UCollationResult result);
|
void doTest(UCollator*, const UChar* source, const UChar* target, UCollationResult result);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
|
|
||||||
#include "cintltst.h"
|
#include "cintltst.h"
|
||||||
#define MAX_TOKEN_LEN 128
|
#define MAX_TOKEN_LEN 16
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
|
|
||||||
#include "cintltst.h"
|
#include "cintltst.h"
|
||||||
|
|
||||||
#define MAX_TOKEN_LEN 128
|
#define MAX_TOKEN_LEN 16
|
||||||
/* Perform Collation Currency Test */
|
/* Perform Collation Currency Test */
|
||||||
void currTest(void);
|
void currTest(void);
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
|
|
||||||
#include "cintltst.h"
|
#include "cintltst.h"
|
||||||
|
|
||||||
#define MAX_TOKEN_LEN 128
|
#define MAX_TOKEN_LEN 24
|
||||||
|
|
||||||
|
|
||||||
/* performs test with strength PRIMARY */
|
/* performs test with strength PRIMARY */
|
||||||
@ -35,7 +35,4 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -25,8 +25,7 @@
|
|||||||
#include "cintltst.h"
|
#include "cintltst.h"
|
||||||
|
|
||||||
|
|
||||||
#define MAX_TOKEN_LEN 128
|
#define MAX_TOKEN_LEN 16
|
||||||
|
|
||||||
|
|
||||||
/* performs test with strength PRIMARY */
|
/* performs test with strength PRIMARY */
|
||||||
static void TestPrimary(void);
|
static void TestPrimary(void);
|
||||||
@ -37,6 +36,4 @@ static void TestTertiary(void);
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
#include "cintltst.h"
|
#include "cintltst.h"
|
||||||
|
|
||||||
|
|
||||||
#define MAX_TOKEN_LEN 128
|
#define MAX_TOKEN_LEN 16
|
||||||
|
|
||||||
|
|
||||||
/* perform test with strength SECONDARY */
|
/* perform test with strength SECONDARY */
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
#include "cintltst.h"
|
#include "cintltst.h"
|
||||||
|
|
||||||
|
|
||||||
#define MAX_TOKEN_LEN 128
|
#define MAX_TOKEN_LEN 16
|
||||||
|
|
||||||
|
|
||||||
/* perform test with strength SECONDARY*/
|
/* perform test with strength SECONDARY*/
|
||||||
@ -36,5 +36,4 @@ static void TestPrimary(void);
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -24,8 +24,7 @@
|
|||||||
|
|
||||||
#include "cintltst.h"
|
#include "cintltst.h"
|
||||||
|
|
||||||
#define MAX_TOKEN_LEN 128
|
#define MAX_TOKEN_LEN 16
|
||||||
|
|
||||||
|
|
||||||
/* performs Extra tests*/
|
/* performs Extra tests*/
|
||||||
static void TestExtra(void);
|
static void TestExtra(void);
|
||||||
@ -38,5 +37,4 @@ static void TestTertiary(void);
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -40,12 +40,11 @@
|
|||||||
|
|
||||||
#include "cintltst.h"
|
#include "cintltst.h"
|
||||||
|
|
||||||
#define MAX_TOKEN_LEN 128
|
#define MAX_TOKEN_LEN 16
|
||||||
#define TESTLOCALES 12
|
#define TESTLOCALES 12
|
||||||
#define FIXEDTESTSET 15
|
#define FIXEDTESTSET 15
|
||||||
#define TOTALTESTSET 30
|
#define TOTALTESTSET 30
|
||||||
|
|
||||||
|
|
||||||
/* perform test for G7 locales */
|
/* perform test for G7 locales */
|
||||||
static void TestG7Locales(void);
|
static void TestG7Locales(void);
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
#include "unicode/utypes.h"
|
#include "unicode/utypes.h"
|
||||||
#include "unicode/ucol.h"
|
#include "unicode/ucol.h"
|
||||||
|
|
||||||
#define MAX_TOKEN_LEN 128
|
#define MAX_TOKEN_LEN 16
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test for CollationElementIterator previous and next for the whole set of
|
* Test for CollationElementIterator previous and next for the whole set of
|
||||||
|
@ -28,7 +28,7 @@
|
|||||||
#include "cintltst.h"
|
#include "cintltst.h"
|
||||||
|
|
||||||
|
|
||||||
#define MAX_TOKEN_LEN 128
|
#define MAX_TOKEN_LEN 16
|
||||||
|
|
||||||
|
|
||||||
/*perform test with strength TERTIARY*/
|
/*perform test with strength TERTIARY*/
|
||||||
|
@ -28,6 +28,9 @@
|
|||||||
#include "ucol_tok.h"
|
#include "ucol_tok.h"
|
||||||
#include "cmemory.h"
|
#include "cmemory.h"
|
||||||
|
|
||||||
|
#define MAX_TOKEN_LEN 16
|
||||||
|
|
||||||
|
|
||||||
static UCollator *myCollation;
|
static UCollator *myCollation;
|
||||||
const static UChar gRules[MAX_TOKEN_LEN] =
|
const static UChar gRules[MAX_TOKEN_LEN] =
|
||||||
/*" & 0 < 1,\u2461<a,A"*/
|
/*" & 0 < 1,\u2461<a,A"*/
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
|
|
||||||
#include "cintltst.h"
|
#include "cintltst.h"
|
||||||
|
|
||||||
#define MAX_TOKEN_LEN 128
|
#define MAX_TOKEN_LEN 16
|
||||||
|
|
||||||
|
|
||||||
/*perform test with strength PRIMARY */
|
/*perform test with strength PRIMARY */
|
||||||
@ -33,6 +33,4 @@ static void TestPrimary(void);
|
|||||||
static void TestTertiary(void);
|
static void TestTertiary(void);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
|
|
||||||
#include "cintltst.h"
|
#include "cintltst.h"
|
||||||
|
|
||||||
#define MAX_TOKEN_LEN 128
|
#define MAX_TOKEN_LEN 16
|
||||||
|
|
||||||
/* performs test with strength PRIMARY */
|
/* performs test with strength PRIMARY */
|
||||||
static void TestPrimary(void);
|
static void TestPrimary(void);
|
||||||
@ -37,7 +37,4 @@ static void TestTertiary(void);
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user