8350383: Test: add more test case for string compare (UL case)

Reviewed-by: fyang
This commit is contained in:
Hamlin Li
2025-02-21 09:48:54 +00:00
parent 16033ea79a
commit c73fead5ca

View File

@@ -155,6 +155,7 @@ public class TestStringIntrinsics {
char cL = latin1.charAt(indexL);
char cU = utf16.charAt(indexU);
invokeAndCheck(m, cL - cU, latin1, latin1.replace(cL, cU));
invokeAndCheck(m, cU - cL, latin1.replace(cL, cU), latin1);
invokeAndCheck(m, cU - cL, utf16, utf16.replace(cU, cL));
// Different lengths