ICU-832 Each test string does not need to be 128 UChars big.
Setting MAX_TOKEN_LEN to a lower limit takes out about 120K from the executable on Windows. If you need larger test string, you can raise the limit where it's needed. X-SVN-Rev: 4409
This commit is contained in:
parent
8489febe91
commit
d3bbdaa191
@ -31,8 +31,9 @@
|
||||
|
||||
class CollationDummyTest: public IntlTest {
|
||||
public:
|
||||
// static constants
|
||||
enum EToken_Len { MAX_TOKEN_LEN = 128 };
|
||||
// If this is too small for the test data, just increase it.
|
||||
// Just don't make it too large, otherwise the executable will get too big
|
||||
enum EToken_Len { MAX_TOKEN_LEN = 16 };
|
||||
|
||||
CollationDummyTest();
|
||||
virtual ~CollationDummyTest();
|
||||
|
@ -113,8 +113,9 @@ public:
|
||||
void TestGetAll(/* char* par */);
|
||||
|
||||
private:
|
||||
// static constants
|
||||
enum EToken_Len { MAX_TOKEN_LEN = 128 };
|
||||
// If this is too small for the test data, just increase it.
|
||||
// Just don't make it too large, otherwise the executable will get too big
|
||||
enum EToken_Len { MAX_TOKEN_LEN = 16 };
|
||||
|
||||
};
|
||||
#endif
|
||||
|
@ -36,6 +36,8 @@ class CollationCurrencyTest: public IntlTest
|
||||
{
|
||||
public:
|
||||
|
||||
// If this is too small for the test data, just increase it.
|
||||
// Just don't make it too large, otherwise the executable will get too big
|
||||
enum EToken_Len { MAX_TOKEN_LEN = 16 };
|
||||
|
||||
CollationCurrencyTest();
|
||||
|
@ -28,8 +28,9 @@
|
||||
|
||||
class CollationDanishTest: public IntlTest {
|
||||
public:
|
||||
// static constants
|
||||
enum EToken_Len { MAX_TOKEN_LEN = 128 };
|
||||
// If this is too small for the test data, just increase it.
|
||||
// Just don't make it too large, otherwise the executable will get too big
|
||||
enum EToken_Len { MAX_TOKEN_LEN = 24 };
|
||||
|
||||
CollationDanishTest();
|
||||
virtual ~CollationDanishTest();
|
||||
|
@ -26,8 +26,9 @@
|
||||
|
||||
class CollationGermanTest: public IntlTest {
|
||||
public:
|
||||
// static constants
|
||||
enum EToken_Len { MAX_TOKEN_LEN = 128 };
|
||||
// If this is too small for the test data, just increase it.
|
||||
// Just don't make it too large, otherwise the executable will get too big
|
||||
enum EToken_Len { MAX_TOKEN_LEN = 16 };
|
||||
|
||||
CollationGermanTest();
|
||||
virtual ~CollationGermanTest();
|
||||
|
@ -28,8 +28,9 @@
|
||||
|
||||
class CollationEnglishTest: public IntlTest {
|
||||
public:
|
||||
// static constants
|
||||
enum EToken_Len { MAX_TOKEN_LEN = 128 };
|
||||
// If this is too small for the test data, just increase it.
|
||||
// Just don't make it too large, otherwise the executable will get too big
|
||||
enum EToken_Len { MAX_TOKEN_LEN = 16 };
|
||||
|
||||
CollationEnglishTest();
|
||||
virtual ~CollationEnglishTest();
|
||||
|
@ -28,8 +28,9 @@
|
||||
|
||||
class CollationSpanishTest: public IntlTest {
|
||||
public:
|
||||
// static constants
|
||||
enum EToken_Len { MAX_TOKEN_LEN = 128 };
|
||||
// If this is too small for the test data, just increase it.
|
||||
// Just don't make it too large, otherwise the executable will get too big
|
||||
enum EToken_Len { MAX_TOKEN_LEN = 16 };
|
||||
|
||||
CollationSpanishTest();
|
||||
virtual ~CollationSpanishTest();
|
||||
|
@ -27,8 +27,9 @@
|
||||
|
||||
class CollationFinnishTest: public IntlTest {
|
||||
public:
|
||||
// static constants
|
||||
enum EToken_Len { MAX_TOKEN_LEN = 128 };
|
||||
// If this is too small for the test data, just increase it.
|
||||
// Just don't make it too large, otherwise the executable will get too big
|
||||
enum EToken_Len { MAX_TOKEN_LEN = 16 };
|
||||
|
||||
CollationFinnishTest();
|
||||
virtual ~CollationFinnishTest();
|
||||
|
@ -26,8 +26,9 @@
|
||||
|
||||
class CollationFrenchTest: public IntlTest {
|
||||
public:
|
||||
// static constants
|
||||
enum EToken_Len { MAX_TOKEN_LEN = 128 };
|
||||
// If this is too small for the test data, just increase it.
|
||||
// Just don't make it too large, otherwise the executable will get too big
|
||||
enum EToken_Len { MAX_TOKEN_LEN = 16 };
|
||||
|
||||
CollationFrenchTest();
|
||||
virtual ~CollationFrenchTest();
|
||||
|
@ -49,8 +49,10 @@
|
||||
|
||||
class G7CollationTest: public IntlTest {
|
||||
public:
|
||||
// static constants
|
||||
enum EToken_Len { MAX_TOKEN_LEN = 128 };
|
||||
// If this is too small for the test data, just increase it.
|
||||
// Just don't make it too large, otherwise the executable will get too big
|
||||
enum EToken_Len { MAX_TOKEN_LEN = 16 };
|
||||
|
||||
enum ETotal_Locales { TESTLOCALES = 12 };
|
||||
enum ETotal_Fixed { FIXEDTESTSET = 15 };
|
||||
enum ETotal_Test { TOTALTESTSET = 30 };
|
||||
|
@ -40,7 +40,9 @@ class CollationIteratorTest: public IntlTest
|
||||
{
|
||||
public:
|
||||
|
||||
enum EToken_Len { MAX_TOKEN_LEN = 128 };
|
||||
// If this is too small for the test data, just increase it.
|
||||
// Just don't make it too large, otherwise the executable will get too big
|
||||
enum EToken_Len { MAX_TOKEN_LEN = 16 };
|
||||
|
||||
CollationIteratorTest();
|
||||
virtual ~CollationIteratorTest();
|
||||
|
@ -27,8 +27,9 @@
|
||||
|
||||
class CollationKanaTest: public IntlTest {
|
||||
public:
|
||||
// static constants
|
||||
enum EToken_Len { MAX_TOKEN_LEN = 128 };
|
||||
// If this is too small for the test data, just increase it.
|
||||
// Just don't make it too large, otherwise the executable will get too big
|
||||
enum EToken_Len { MAX_TOKEN_LEN = 16 };
|
||||
|
||||
CollationKanaTest();
|
||||
virtual ~CollationKanaTest();
|
||||
|
@ -19,8 +19,9 @@
|
||||
|
||||
class LotusCollationKoreanTest: public IntlTest {
|
||||
public:
|
||||
// static constants
|
||||
enum EToken_Len { MAX_TOKEN_LEN = 128 };
|
||||
// If this is too small for the test data, just increase it.
|
||||
// Just don't make it too large, otherwise the executable will get too big
|
||||
enum EToken_Len { MAX_TOKEN_LEN = 16 };
|
||||
|
||||
LotusCollationKoreanTest();
|
||||
virtual ~LotusCollationKoreanTest();
|
||||
|
@ -28,8 +28,9 @@
|
||||
|
||||
class CollationMonkeyTest: public IntlTest {
|
||||
public:
|
||||
// static constants
|
||||
enum EToken_Len { MAX_TOKEN_LEN = 128 };
|
||||
// If this is too small for the test data, just increase it.
|
||||
// Just don't make it too large, otherwise the executable will get too big
|
||||
enum EToken_Len { MAX_TOKEN_LEN = 16 };
|
||||
|
||||
CollationMonkeyTest();
|
||||
virtual ~CollationMonkeyTest();
|
||||
|
@ -36,7 +36,9 @@ class CollationRegressionTest: public IntlTest
|
||||
{
|
||||
public:
|
||||
|
||||
enum EToken_Len { MAX_TOKEN_LEN = 128 };
|
||||
// If this is too small for the test data, just increase it.
|
||||
// Just don't make it too large, otherwise the executable will get too big
|
||||
enum EToken_Len { MAX_TOKEN_LEN = 32 };
|
||||
|
||||
CollationRegressionTest();
|
||||
virtual ~CollationRegressionTest();
|
||||
|
@ -27,7 +27,9 @@
|
||||
|
||||
class CollationTurkishTest: public IntlTest {
|
||||
public:
|
||||
enum EToken_Len { MAX_TOKEN_LEN = 128 };
|
||||
// If this is too small for the test data, just increase it.
|
||||
// Just don't make it too large, otherwise the executable will get too big
|
||||
enum EToken_Len { MAX_TOKEN_LEN = 16 };
|
||||
|
||||
CollationTurkishTest();
|
||||
virtual ~CollationTurkishTest();
|
||||
|
Loading…
Reference in New Issue
Block a user