From 7b28ef3f4e8f4cb4cdd21574f4f9a1de7336c8f2 Mon Sep 17 00:00:00 2001 From: siva kumar konda Date: Tue, 2 Jun 2026 14:25:14 -0500 Subject: [PATCH 1/3] Add test case for nullSafeToString with Double array Signed-off-by: siva kumar konda --- .../java/org/junit/platform/commons/util/StringUtilsTests.java | 1 + 1 file changed, 1 insertion(+) diff --git a/platform-tests/src/test/java/org/junit/platform/commons/util/StringUtilsTests.java b/platform-tests/src/test/java/org/junit/platform/commons/util/StringUtilsTests.java index 6a78f23aace7..5034e8a77df7 100644 --- a/platform-tests/src/test/java/org/junit/platform/commons/util/StringUtilsTests.java +++ b/platform-tests/src/test/java/org/junit/platform/commons/util/StringUtilsTests.java @@ -139,6 +139,7 @@ void nullSafeToStringChecks() { assertEquals("[a, b, c]", nullSafeToString(new char[] { 'a', 'b', 'c' })); assertEquals("[foo, bar]", nullSafeToString(new String[] { "foo", "bar" })); assertEquals("[34, 42]", nullSafeToString(new Integer[] { 34, 42 })); + assertEquals("[34.0, 42.0]", nullSafeToString(new Double[] { 34.0, 42.0 })); assertEquals("[[2, 4], [3, 9]]", nullSafeToString(new Integer[][] { { 2, 4 }, { 3, 9 } })); } From 8cd563f4eb5f6fe81086f7ad9aaf85ae7874a2c4 Mon Sep 17 00:00:00 2001 From: siva kumar konda Date: Tue, 2 Jun 2026 15:21:01 -0500 Subject: [PATCH 2/3] Revert "Add test case for nullSafeToString with Double array" This reverts commit 3500c8327e10ab3f83e268a0f9b80279fa9de679. Signed-off-by: siva kumar konda --- .../java/org/junit/platform/commons/util/StringUtilsTests.java | 1 - 1 file changed, 1 deletion(-) diff --git a/platform-tests/src/test/java/org/junit/platform/commons/util/StringUtilsTests.java b/platform-tests/src/test/java/org/junit/platform/commons/util/StringUtilsTests.java index 5034e8a77df7..6a78f23aace7 100644 --- a/platform-tests/src/test/java/org/junit/platform/commons/util/StringUtilsTests.java +++ b/platform-tests/src/test/java/org/junit/platform/commons/util/StringUtilsTests.java @@ -139,7 +139,6 @@ void nullSafeToStringChecks() { assertEquals("[a, b, c]", nullSafeToString(new char[] { 'a', 'b', 'c' })); assertEquals("[foo, bar]", nullSafeToString(new String[] { "foo", "bar" })); assertEquals("[34, 42]", nullSafeToString(new Integer[] { 34, 42 })); - assertEquals("[34.0, 42.0]", nullSafeToString(new Double[] { 34.0, 42.0 })); assertEquals("[[2, 4], [3, 9]]", nullSafeToString(new Integer[][] { { 2, 4 }, { 3, 9 } })); } From ed6c2dce5587e27e844f37703871c2e7626ffdb5 Mon Sep 17 00:00:00 2001 From: siva kumar konda Date: Tue, 2 Jun 2026 15:29:15 -0500 Subject: [PATCH 3/3] Add test case for nullSafeToString with Double array Signed-off-by: siva kumar konda --- .../java/org/junit/platform/commons/util/StringUtilsTests.java | 1 + 1 file changed, 1 insertion(+) diff --git a/platform-tests/src/test/java/org/junit/platform/commons/util/StringUtilsTests.java b/platform-tests/src/test/java/org/junit/platform/commons/util/StringUtilsTests.java index 6a78f23aace7..5034e8a77df7 100644 --- a/platform-tests/src/test/java/org/junit/platform/commons/util/StringUtilsTests.java +++ b/platform-tests/src/test/java/org/junit/platform/commons/util/StringUtilsTests.java @@ -139,6 +139,7 @@ void nullSafeToStringChecks() { assertEquals("[a, b, c]", nullSafeToString(new char[] { 'a', 'b', 'c' })); assertEquals("[foo, bar]", nullSafeToString(new String[] { "foo", "bar" })); assertEquals("[34, 42]", nullSafeToString(new Integer[] { 34, 42 })); + assertEquals("[34.0, 42.0]", nullSafeToString(new Double[] { 34.0, 42.0 })); assertEquals("[[2, 4], [3, 9]]", nullSafeToString(new Integer[][] { { 2, 4 }, { 3, 9 } })); }