ICU-4603 add test for beam complaint
X-SVN-Rev: 18386
This commit is contained in:
parent
dcf498d172
commit
2b51573bde
@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
*******************************************************************************
|
*******************************************************************************
|
||||||
*
|
*
|
||||||
* Copyright (C) 2003, International Business Machines
|
* Copyright (C) 2003-2005, International Business Machines
|
||||||
* Corporation and others. All Rights Reserved.
|
* Corporation and others. All Rights Reserved.
|
||||||
*
|
*
|
||||||
*******************************************************************************
|
*******************************************************************************
|
||||||
@ -37,6 +37,7 @@ static void Test_nfs4_mixed_prep_data(void);
|
|||||||
static void Test_nfs4_cs_prep(void);
|
static void Test_nfs4_cs_prep(void);
|
||||||
static void Test_nfs4_cis_prep(void);
|
static void Test_nfs4_cis_prep(void);
|
||||||
static void Test_nfs4_mixed_prep(void);
|
static void Test_nfs4_mixed_prep(void);
|
||||||
|
static void TestBEAMWarning(void);
|
||||||
|
|
||||||
void
|
void
|
||||||
addUStringPrepTest(TestNode** root)
|
addUStringPrepTest(TestNode** root)
|
||||||
@ -47,6 +48,7 @@ addUStringPrepTest(TestNode** root)
|
|||||||
addTest(root, &Test_nfs4_cs_prep, "spreptst/Test_nfs4_cs_prep");
|
addTest(root, &Test_nfs4_cs_prep, "spreptst/Test_nfs4_cs_prep");
|
||||||
addTest(root, &Test_nfs4_cis_prep, "spreptst/Test_nfs4_cis_prep");
|
addTest(root, &Test_nfs4_cis_prep, "spreptst/Test_nfs4_cis_prep");
|
||||||
addTest(root, &Test_nfs4_mixed_prep, "spreptst/Test_nfs4_mixed_prep");
|
addTest(root, &Test_nfs4_mixed_prep, "spreptst/Test_nfs4_mixed_prep");
|
||||||
|
addTest(root, &TestBEAMWarning, "spreptst/TestBEAMWarning");
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
@ -550,6 +552,22 @@ Test_nfs4_cs_prep(void){
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
static void TestBEAMWarning(){
|
||||||
|
UErrorCode status = U_ZERO_ERROR;
|
||||||
|
UParseError parseError;
|
||||||
|
UStringPrepProfile* profile = NULL;
|
||||||
|
/* get the test data path */
|
||||||
|
const char *testdatapath = NULL;
|
||||||
|
UChar src =0x0000;
|
||||||
|
testdatapath = loadTestData(&status);
|
||||||
|
/* open the profile */
|
||||||
|
profile = usprep_open(testdatapath, "nfscis", &status);
|
||||||
|
usprep_prepare(profile,&src , 0, NULL, 0, USPREP_DEFAULT, &parseError, &status);
|
||||||
|
|
||||||
|
usprep_close(profile);
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user