Skip to content

Commit

Permalink
8324998: Add test cases for String.regionMatches comparing Turkic dot…
Browse files Browse the repository at this point in the history
…ted/dotless I with uppercase latin I

Backport-of: c3c1d5bd12f80c6a720e431961e90b09c2d972f9
  • Loading branch information
Sonia Zaldana Calles authored and shipilev committed Mar 25, 2024
1 parent 8c6e32d commit 39f7178
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/jdk/java/lang/String/CompactString/RegionMatches.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2015, 2022, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2015, 2024, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -96,9 +96,13 @@ public Object[][] provider() {
// Turkish I with dot
new Object[] { "\u0130", false, 0, "i", 0, 1, false },
new Object[] { "\u0130", true, 0, "i", 0, 1, true },
new Object[] { "\u0130", false, 0, "I", 0, 1, false },
new Object[] { "\u0130", true, 0, "I", 0, 1, true },
// i without dot
new Object[] { "\u0131", false, 0, "i", 0, 1, false },
new Object[] { "\u0131", true, 0, "i", 0, 1, true },
new Object[] { "\u0131", false, 0, "I", 0, 1, false },
new Object[] { "\u0131", true, 0, "I", 0, 1, true },
// Exhaustive list of 1-char latin1 strings that match
// case-insensitively:
// for (char c1 = 0; c1 < 255; c1++) {
Expand Down

1 comment on commit 39f7178

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.