*/
@Test
public void testEOL() throws IOException {
String base = "DGS004%neol 0 0%n%nan A%n";
String[] eols = { /* LF */ "\n", /* CR+LF */ "\r\n" };
FileSourceDGS source = new FileSourceDGS();
Graph g = new AdjacencyListGraph("eol");
source.addSink(g);
for (String eol : eols) {
String dgs = base.replace("%n", eol);
StringReader in = new StringReader(dgs);
try {
source.readAll(in);
assertNotNull(g.getNode("A"));
g.clear();
} catch (IOException e) {
if (e.getCause() instanceof ParseException)
fail();