Skip to content

Commit a9937e2

Browse files
committed
Make this test work on Windows
1 parent 01302ee commit a9937e2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

itest/src/edu/stanford/nlp/pipeline/CoNLLUReaderITest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ public void testReadingInCoNLLUFile() throws ClassNotFoundException, IOException
190190
if (i == 0 && j == 1) {
191191
assertEquals(" ", token.after());
192192
} else if (j == tokens.size() - 1) {
193-
assertEquals("\n", token.after());
193+
assertEquals(System.lineSeparator(), token.after());
194194
} else if (j == tokens.size() - 2) {
195195
assertEquals("", token.after());
196196
} else if (i == 0 && j == 13) {
@@ -205,7 +205,7 @@ public void testReadingInCoNLLUFile() throws ClassNotFoundException, IOException
205205
// TODO: is it properly reading the SpacesBefore on the first token?
206206
assertEquals("", token.before());
207207
} else if (j == 0) {
208-
assertEquals("\n", token.before());
208+
assertEquals(System.lineSeparator(), token.before());
209209
} else if (j == tokens.size() - 1) {
210210
assertEquals("", token.before());
211211
} else if (i == 0 && j == 14) {

0 commit comments

Comments
 (0)