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-csv.git

commit 26a53751934e52f84663e5e90956db99f0eefc49
Author: Gary Gregory <[email protected]>
AuthorDate: Thu Jun 25 22:13:08 2026 +0000

    Add test more assertions to
    
CSVParserTest.testEmptyFieldBeforeWhitespacePrefixedMultiCharacterDelimiter()
---
 src/test/java/org/apache/commons/csv/CSVParserTest.java | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/test/java/org/apache/commons/csv/CSVParserTest.java 
b/src/test/java/org/apache/commons/csv/CSVParserTest.java
index 3bea08fa..6d9bdd9e 100644
--- a/src/test/java/org/apache/commons/csv/CSVParserTest.java
+++ b/src/test/java/org/apache/commons/csv/CSVParserTest.java
@@ -483,6 +483,11 @@ class CSVParserTest {
             assertEquals(1, records.size());
             assertValuesEquals(new String[] { "a", "", "b" }, records.get(0));
         }
+        try (CSVParser parser = CSVParser.parse("a | |b |", format)) {
+            final List<CSVRecord> records = parser.getRecords();
+            assertEquals(1, records.size());
+            assertValuesEquals(new String[] { "a", "", "b", "" }, 
records.get(0));
+        }
     }
 
     @Test

Reply via email to