Skip to content

Commit c73fead

Browse files
author
Hamlin Li
committed
8350383: Test: add more test case for string compare (UL case)
Reviewed-by: fyang
1 parent 16033ea commit c73fead

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/hotspot/jtreg/compiler/intrinsics/string/TestStringIntrinsics.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ private void checkIntrinsics(Operation op, Method m, String latin1, String utf16
155155
char cL = latin1.charAt(indexL);
156156
char cU = utf16.charAt(indexU);
157157
invokeAndCheck(m, cL - cU, latin1, latin1.replace(cL, cU));
158+
invokeAndCheck(m, cU - cL, latin1.replace(cL, cU), latin1);
158159
invokeAndCheck(m, cU - cL, utf16, utf16.replace(cU, cL));
159160

160161
// Different lengths

0 commit comments

Comments
 (0)