// Copyright 2012 Rui Ueyama <rui314@gmail.com>
// This program is free software licensed under the MIT license.

#include "test.h"

#define stringify(x) #x

void digraph(void) {
    expect_string("[", stringify(<:));
    expect_string("]", stringify(:>));
    expect_string("{", stringify(<%));
    expect_string("}", stringify(%>));
    expect_string("#", stringify(%:));
    expect_string("% :", stringify(% :));
    expect_string("##", stringify(%:%:));
    expect_string("#%", stringify(%:%));
}

void escape(void) {
    int value = 10;
    expect(10, val\
ue);
}

void whitespace(void) {
    expect_string("x y", stringify(xy));
}

void newline(void) {
    
 
#
}

void testmain(void) {
    print("lexer");
    digraph();
    escape();
    whitespace();
    newline();
}

// Copyright 2012 Rui Ueyama <rui314@gmail.com>
// This program is free software licensed under the MIT license.

#include "test.h"

#define stringify(x) #x

void digraph(void) {
    expect_string("[", stringify(<:));
    expect_string("]", stringify(:>));
    expect_string("{", stringify(<%));
    expect_string("}", stringify(%>));
    expect_string("#", stringify(%:));
    expect_string("% :", stringify(% :));
    expect_string("##", stringify(%:%:));
    expect_string("#%", stringify(%:%));
}

void escape(void) {
    int value = 10;
    expect(10, val\
ue);
}

void whitespace(void) {
    expect_string("x y", stringify(xy));
}

void testmain(void) {
    print("lexer");
    digraph();
    escape();
    whitespace();
}

--- 
+++ 
@@ -32,9 +32,16 @@
 ));
 }
 
+void newline(void) {
+    
+ 
+#
+}
+
 void testmain(void) {
     print("lexer");
     digraph();
     escape();
     whitespace();
+    newline();
 }
Add a test for line separator characters.
