Skip to content

Commit 5ca16c7

Browse files
committed
StringEscapeUtilsTest.testUnescapeCsvString(): Add test assertion from
apache/commons-lang#1723
1 parent 6cff85b commit 5ca16c7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/test/java/org/apache/commons/text/StringEscapeUtilsTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -431,9 +431,9 @@ void testUnescapeCsvString() {
431431
assertEquals("foo\uD84C\uDFB4bar", StringEscapeUtils.unescapeCsv("foo\uD84C\uDFB4bar"));
432432
assertEquals("", StringEscapeUtils.unescapeCsv(""));
433433
assertNull(StringEscapeUtils.unescapeCsv(null));
434-
435434
assertEquals("foo.bar", StringEscapeUtils.unescapeCsv("\"foo.bar\""));
436-
}
435+
// a single quote is not an enclosing pair, so it passes through unchanged
436+
assertEquals("\"", StringEscapeUtils.unescapeCsv("\"")); }
437437

438438
@Test
439439
void testUnescapeCsvWriter() throws IOException {

0 commit comments

Comments
 (0)