This is an automated email from the ASF dual-hosted git repository.

damjan pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/openoffice.git

commit 5c977050c2e1a4a4b1ea2ea26c77b0321226f137
Author: Damjan Jovanovic <[email protected]>
AuthorDate: Thu May 8 17:29:30 2025 +0200

    Fix the test failure in XCharacterClassificationTest._getCharacterType().
    The ')' doesn't have type PRINTABLE any longer, so use '*' instead
    which does have it.
    
    Patch by: me
---
 test/testuno/source/api/i18n/XCharacterClassificationTest.java | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/test/testuno/source/api/i18n/XCharacterClassificationTest.java 
b/test/testuno/source/api/i18n/XCharacterClassificationTest.java
index 471fc2b879..0bf64cfd7a 100644
--- a/test/testuno/source/api/i18n/XCharacterClassificationTest.java
+++ b/test/testuno/source/api/i18n/XCharacterClassificationTest.java
@@ -263,7 +263,15 @@ public class XCharacterClassificationTest {
     @Test
     public void _getCharacterType() {
         boolean res = true;
-        String toCheck = "Ab0)";
+        // If or when this list gets out of date again,
+        // find new characters of the required type with:
+        //for (int i = 32; i <= 0xffff; i++) {
+        //    int charType = oObj.getCharacterType("" + (char)i, 0, 
getLocale(1));
+        //    if (charType == 32) {
+        //        System.out.println("character " + i + " has type 32");
+        //    }
+        //}
+        String toCheck = "Ab0*";
         int[] expected = new int[]{226,228,97,32};
 
         for (int i=0;i<toCheck.length();i++) {

Reply via email to