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:
George Rhoten 2001-03-30 01:22:03 +00:00
parent 8489febe91
commit d3bbdaa191
16 changed files with 48 additions and 27 deletions

View File

@ -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();

View File

@ -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

View File

@ -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();

View File

@ -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();

View File

@ -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();

View File

@ -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();

View File

@ -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();

View File

@ -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();

View File

@ -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();

View File

@ -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 };

View File

@ -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();

View File

@ -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();

View File

@ -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();

View File

@ -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();

View File

@ -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();

View File

@ -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();