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

garydgregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-text.git


The following commit(s) were added to refs/heads/master by this push:
     new 5ca16c7f StringEscapeUtilsTest.testUnescapeCsvString(): Add test 
assertion from https://github.com/apache/commons-lang/pull/1723
5ca16c7f is described below

commit 5ca16c7f06fe509b4c29cd4b55cfb5a486fc3340
Author: Gary Gregory <[email protected]>
AuthorDate: Sun Jun 21 10:56:53 2026 +0000

    StringEscapeUtilsTest.testUnescapeCsvString(): Add test assertion from
    https://github.com/apache/commons-lang/pull/1723
---
 src/test/java/org/apache/commons/text/StringEscapeUtilsTest.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/test/java/org/apache/commons/text/StringEscapeUtilsTest.java 
b/src/test/java/org/apache/commons/text/StringEscapeUtilsTest.java
index aa3b27ea..c2ab95e8 100644
--- a/src/test/java/org/apache/commons/text/StringEscapeUtilsTest.java
+++ b/src/test/java/org/apache/commons/text/StringEscapeUtilsTest.java
@@ -431,9 +431,9 @@ class StringEscapeUtilsTest {
         assertEquals("foo\uD84C\uDFB4bar", 
StringEscapeUtils.unescapeCsv("foo\uD84C\uDFB4bar"));
         assertEquals("", StringEscapeUtils.unescapeCsv(""));
         assertNull(StringEscapeUtils.unescapeCsv(null));
-
         assertEquals("foo.bar", StringEscapeUtils.unescapeCsv("\"foo.bar\""));
-    }
+        // a single quote is not an enclosing pair, so it passes through 
unchanged
+        assertEquals("\"", StringEscapeUtils.unescapeCsv("\""));    }
 
     @Test
     void testUnescapeCsvWriter() throws IOException {

Reply via email to