@@ -1020,7 +1020,7 @@ public void testReadLines_CharSequence() throws IOException {
10201020 final File file = TestUtils .newFile (temporaryFolder , "lines.txt" );
10211021 CharSequence csq = null ;
10221022 try {
1023- final String [] data = {"hello" , "/ u1234" , "" , "this is" , "some text" };
1023+ final String [] data = {"hello" , "\ u1234 " , "" , "this is" , "some text" };
10241024 TestUtils .createLineFileUtf8 (file , data );
10251025 csq = new String (Files .readAllBytes (file .toPath ()), StandardCharsets .UTF_8 );
10261026 final List <String > lines = IOUtils .readLines (csq );
@@ -1035,7 +1035,7 @@ public void testReadLines_CharSequenceAsStringBuilder() throws IOException {
10351035 final File file = TestUtils .newFile (temporaryFolder , "lines.txt" );
10361036 StringBuilder csq = null ;
10371037 try {
1038- final String [] data = {"hello" , "/ u1234" , "" , "this is" , "some text" };
1038+ final String [] data = {"hello" , "\ u1234 " , "" , "this is" , "some text" };
10391039 TestUtils .createLineFileUtf8 (file , data );
10401040 csq = new StringBuilder (new String (Files .readAllBytes (file .toPath ()), StandardCharsets .UTF_8 ));
10411041 final List <String > lines = IOUtils .readLines (csq );
@@ -1068,9 +1068,8 @@ public void testReadLines_InputStream_String() throws Exception {
10681068 final File file = TestUtils .newFile (temporaryFolder , "lines.txt" );
10691069 InputStream in = null ;
10701070 try {
1071- final String [] data = {" hello" , "/ u1234" , "" , "this is" , "some text" };
1071+ final String [] data = { " \u4f60 \u597d " , " hello" , "\ u1234 " , "" , "this is" , "some text" };
10721072 TestUtils .createLineFileUtf8 (file , data );
1073-
10741073 in = Files .newInputStream (file .toPath ());
10751074 final List <String > lines = IOUtils .readLines (in , UTF_8 );
10761075 assertEquals (Arrays .asList (data ), lines );
@@ -1086,7 +1085,7 @@ public void testReadLines_Reader() throws Exception {
10861085 final File file = TestUtils .newFile (temporaryFolder , "lines.txt" );
10871086 Reader in = null ;
10881087 try {
1089- final String [] data = {"hello" , "/ u1234" , "" , "this is" , "some text" };
1088+ final String [] data = {"hello" , "\ u1234 " , "" , "this is" , "some text" };
10901089 TestUtils .createLineFileUtf8 (file , data );
10911090 in = new InputStreamReader (Files .newInputStream (file .toPath ()));
10921091 final List <String > lines = IOUtils .readLines (in );
0 commit comments