mirror of
https://github.com/openRuyi-Project/gcc.git
synced 2026-06-27 05:45:52 +00:00
Initial revision
From-SVN: r102074
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
/*
|
||||
* Aaron M. Renn reported a bug in Japhar having string length 17 for
|
||||
* this string
|
||||
*/
|
||||
|
||||
public class StringTest
|
||||
{
|
||||
public static void
|
||||
main(String[] argv)
|
||||
{
|
||||
UnicodeStringLength();
|
||||
}
|
||||
static void UnicodeStringLength()
|
||||
{
|
||||
String str = "a-->\u01FF\uA000\u6666\u0200RRR";
|
||||
int len = str.length();
|
||||
if (11 == len) {
|
||||
System.out.println("PASSED: " + str + " has len=" +str.length());
|
||||
} else {
|
||||
System.out.println("FAILED: " + str +
|
||||
" has len=" +str.length() + " != 11");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user