Skip to content

Commit 3fd92ec

Browse files
committed
Use NotEscaped where character has not been escaped
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1509966 13f79535-47bb-0310-9956-ffa450edef68
1 parent 575c88d commit 3fd92ec

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

src/test/java/org/apache/commons/csv/CSVLexerTest.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -306,9 +306,9 @@ public void testEscapedCR() throws Exception {
306306

307307
@Test
308308
public void testCR() throws Exception {
309-
final Lexer lexer = getLexer("character" + CR + "Escaped", formatWithEscaping);
309+
final Lexer lexer = getLexer("character" + CR + "NotEscaped", formatWithEscaping);
310310
assertThat(lexer.nextToken(new Token()), hasContent("character"));
311-
assertThat(lexer.nextToken(new Token()), hasContent("Escaped"));
311+
assertThat(lexer.nextToken(new Token()), hasContent("NotEscaped"));
312312
}
313313

314314
@Test
@@ -319,9 +319,9 @@ public void testEscapedLF() throws Exception {
319319

320320
@Test
321321
public void testLF() throws Exception {
322-
final Lexer lexer = getLexer("character" + LF + "Escaped", formatWithEscaping);
322+
final Lexer lexer = getLexer("character" + LF + "NotEscaped", formatWithEscaping);
323323
assertThat(lexer.nextToken(new Token()), hasContent("character"));
324-
assertThat(lexer.nextToken(new Token()), hasContent("Escaped"));
324+
assertThat(lexer.nextToken(new Token()), hasContent("NotEscaped"));
325325
}
326326

327327
@Test // TODO is this correct? Do we expect TAB to be un/escaped?
@@ -332,8 +332,8 @@ public void testEscapedTab() throws Exception {
332332

333333
@Test // TODO is this correct? Do we expect TAB to be un/escaped?
334334
public void testTab() throws Exception {
335-
final Lexer lexer = getLexer("character" + TAB + "Escaped", formatWithEscaping);
336-
assertThat(lexer.nextToken(new Token()), hasContent("character" + TAB + "Escaped"));
335+
final Lexer lexer = getLexer("character" + TAB + "NotEscaped", formatWithEscaping);
336+
assertThat(lexer.nextToken(new Token()), hasContent("character" + TAB + "NotEscaped"));
337337
}
338338

339339
@Test // TODO is this correct? Do we expect BACKSPACE to be un/escaped?
@@ -344,8 +344,8 @@ public void testEscapedBackspace() throws Exception {
344344

345345
@Test // TODO is this correct? Do we expect BACKSPACE to be un/escaped?
346346
public void testBackspace() throws Exception {
347-
final Lexer lexer = getLexer("character" + BACKSPACE + "Escaped", formatWithEscaping);
348-
assertThat(lexer.nextToken(new Token()), hasContent("character" + BACKSPACE + "Escaped"));
347+
final Lexer lexer = getLexer("character" + BACKSPACE + "NotEscaped", formatWithEscaping);
348+
assertThat(lexer.nextToken(new Token()), hasContent("character" + BACKSPACE + "NotEscaped"));
349349
}
350350

351351
@Test // TODO is this correct? Do we expect FF to be un/escaped?
@@ -356,8 +356,8 @@ public void testEscapedFF() throws Exception {
356356

357357
@Test // TODO is this correct? Do we expect FF to be un/escaped?
358358
public void testFF() throws Exception {
359-
final Lexer lexer = getLexer("character" + FF + "Escaped", formatWithEscaping);
360-
assertThat(lexer.nextToken(new Token()), hasContent("character" + FF + "Escaped"));
359+
final Lexer lexer = getLexer("character" + FF + "NotEscaped", formatWithEscaping);
360+
assertThat(lexer.nextToken(new Token()), hasContent("character" + FF + "NotEscaped"));
361361
}
362362

363363
@Test

0 commit comments

Comments
 (0)