@@ -60,16 +60,13 @@ private Lexer getLexer(final String input, final CSVFormat format) {
6060 // Single line (without comment)
6161 @ Test
6262 public void testIgnoreSurroundingSpacesAreDeleted () throws IOException {
63- final String code = "abc,def, hijk, lmnop, qrst,uv ,wxy ,z , ," ;
63+ final String code = "noSpaces, leadingSpaces,trailingSpaces , surroundingSpaces , , ," ;
6464 final Lexer parser = getLexer (code , CSVFormat .newBuilder ().withIgnoreSurroundingSpaces (true ).build ());
65- assertThat (parser .nextToken (new Token ()), matches (TOKEN , "abc" ));
66- assertThat (parser .nextToken (new Token ()), matches (TOKEN , "def" ));
67- assertThat (parser .nextToken (new Token ()), matches (TOKEN , "hijk" ));
68- assertThat (parser .nextToken (new Token ()), matches (TOKEN , "lmnop" ));
69- assertThat (parser .nextToken (new Token ()), matches (TOKEN , "qrst" ));
70- assertThat (parser .nextToken (new Token ()), matches (TOKEN , "uv" ));
71- assertThat (parser .nextToken (new Token ()), matches (TOKEN , "wxy" ));
72- assertThat (parser .nextToken (new Token ()), matches (TOKEN , "z" ));
65+ assertThat (parser .nextToken (new Token ()), matches (TOKEN , "noSpaces" ));
66+ assertThat (parser .nextToken (new Token ()), matches (TOKEN , "leadingSpaces" ));
67+ assertThat (parser .nextToken (new Token ()), matches (TOKEN , "trailingSpaces" ));
68+ assertThat (parser .nextToken (new Token ()), matches (TOKEN , "surroundingSpaces" ));
69+ assertThat (parser .nextToken (new Token ()), matches (TOKEN , "" ));
7370 assertThat (parser .nextToken (new Token ()), matches (TOKEN , "" ));
7471 assertThat (parser .nextToken (new Token ()), matches (EOF , "" ));
7572 }
0 commit comments