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

sunlan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/groovy.git

commit 412e6e717aee10ae27aa728df726ba1459cf9a07
Author: Daniel Sun <sun...@apache.org>
AuthorDate: Wed Mar 27 01:01:55 2024 +0800

    GROOVY-11347: Fix failing test for JDK 23
---
 src/test/org/codehaus/groovy/runtime/AppendableDgmMethodsTest.groovy | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git 
a/src/test/org/codehaus/groovy/runtime/AppendableDgmMethodsTest.groovy 
b/src/test/org/codehaus/groovy/runtime/AppendableDgmMethodsTest.groovy
index 28053ab970..037742c018 100644
--- a/src/test/org/codehaus/groovy/runtime/AppendableDgmMethodsTest.groovy
+++ b/src/test/org/codehaus/groovy/runtime/AppendableDgmMethodsTest.groovy
@@ -38,6 +38,8 @@ class AppendableDgmMethodsTest extends GroovyTestCase {
             f.format(" %tY", Date.parse('dd MM yyyy', '01 01 2001'))
             f.format(Locale.FRANCE, " e = %+10.4f", Math.E)
         }
-        assert store.join('') == 'hello [a:1, b:2] 2001 e =    +2,7183'
+        assert store.join('') in ['hello [a:1, b:2] 2001 e =    +2,7183',
+                                  'hello [a:1, b:2] 2001 e =    +2.7183' // 
for JDK 23
+                                 ]
     }
 }

Reply via email to