ICU-2324 Test for crash in normalizer due to incorrect data

X-SVN-Rev: 9924
This commit is contained in:
Ram Viswanadha 2002-09-26 23:01:57 +00:00
parent 7bad009de5
commit 95923ead6e

View file

@ -5,8 +5,8 @@
*******************************************************************************
*
* $Source: /xsrl/Nsvn/icu/icu4j/src/com/ibm/icu/dev/test/normalizer/BasicTest.java,v $
* $Date: 2002/09/19 18:12:31 $
* $Revision: 1.16 $
* $Date: 2002/09/26 23:01:57 $
* $Revision: 1.17 $
*
*****************************************************************************************
*/
@ -2135,5 +2135,26 @@ public class BasicTest extends TestFmwk {
length=Normalizer.getFC_NFKC_Closure(0x5c, null);
}
public void TestBugJ2324(){
/* String[] input = new String[]{
//"\u30FD\u3099",
"\u30FA\u309A",
"\u30FB\u309A",
"\u30FC\u309A",
"\u30FE\u309A",
"\u30FD\u309A",
};*/
String troublesome = "\u309A";
for(int i=0x3000; i<0x3100;i++){
String input = ((char)i)+troublesome;
try{
String result = Normalizer.compose(input,false);
}catch(IndexOutOfBoundsException e){
errln("compose() failed for input: " + Utility.hex(input) + " Exception: " + e.toString());
}
}
}
}