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


The following commit(s) were added to refs/heads/master by this push:
     new caa1c8d0 Revert "Refactor delimiter in test"
caa1c8d0 is described below

commit caa1c8d0ed1a05f4a75f9a4fc6e5e2dc6fa5bf51
Author: Gary Gregory <[email protected]>
AuthorDate: Fri Jun 19 18:51:44 2026 +0000

    Revert "Refactor delimiter in test"
    
    This reverts commit a1cf4f2a73065281ca7c22841c2f3ec0c00098c1.
---
 src/test/java/org/apache/commons/csv/CSVParserTest.java | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/test/java/org/apache/commons/csv/CSVParserTest.java 
b/src/test/java/org/apache/commons/csv/CSVParserTest.java
index aa4a639d..29ca0cf1 100644
--- a/src/test/java/org/apache/commons/csv/CSVParserTest.java
+++ b/src/test/java/org/apache/commons/csv/CSVParserTest.java
@@ -672,10 +672,10 @@ class CSVParserTest {
     @Test
     void 
testGetBytePositionMultiCharacterDelimiterWithSupplementaryCharacter() throws 
IOException {
         final String delimiter = "x😀";
-        final String data = "a" + delimiter + "b\nc" + delimiter + "d\n";
+        final String code = "ax😀b\ncx😀d\n";
         final CSVFormat format = 
CSVFormat.DEFAULT.builder().setDelimiter(delimiter).get();
         try (CSVParser parser = CSVParser.builder()
-                .setReader(new StringReader(data))
+                .setReader(new StringReader(code))
                 .setFormat(format)
                 .setCharset(UTF_8)
                 .setTrackBytes(true)
@@ -687,7 +687,7 @@ class CSVParserTest {
             assertValuesEquals(new String[] { "a", "b" }, first);
             assertValuesEquals(new String[] { "c", "d" }, second);
             assertEquals(0, first.getBytePosition());
-            assertEquals("a" + delimiter + "b\n".getBytes(UTF_8).length, 
second.getBytePosition());
+            assertEquals("ax😀b\n".getBytes(UTF_8).length, 
second.getBytePosition());
         }
     }
 

Reply via email to