diff options
author | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-07-16 00:30:23 +0000 |
---|---|---|
committer | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-07-16 00:30:23 +0000 |
commit | c8875fb97fc03779a5bba09872227b1d08e5d52a (patch) | |
tree | a0b991cf5866ae1d616639b906ac001811d74508 /libjava/classpath/testsuite/java.lang/StringTest.java | |
parent | c40c1730800ed292b6db39a83d592476fa59623c (diff) | |
download | ppe42-gcc-c8875fb97fc03779a5bba09872227b1d08e5d52a.tar.gz ppe42-gcc-c8875fb97fc03779a5bba09872227b1d08e5d52a.zip |
Initial revision
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@102074 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/classpath/testsuite/java.lang/StringTest.java')
-rw-r--r-- | libjava/classpath/testsuite/java.lang/StringTest.java | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/libjava/classpath/testsuite/java.lang/StringTest.java b/libjava/classpath/testsuite/java.lang/StringTest.java new file mode 100644 index 00000000000..cd9d83d5572 --- /dev/null +++ b/libjava/classpath/testsuite/java.lang/StringTest.java @@ -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"); + } + } +} |