Added preprocessor line.

This commit is contained in:
Marvin Blum
2015-10-31 16:20:04 +01:00
parent dc4eaf4b0f
commit 276ab86668
5 changed files with 69 additions and 7 deletions

View File

@@ -154,6 +154,13 @@ func TestParserInlineCode(t *testing.T) {
equal(t, got, want)
}
func TestParserPreprocessor(t *testing.T) {
got := getCompiled(t, "test/tokenizer_preprocessor.asl")
want := "#define HELLO_WORLD \"Hello World!\"\r\nhint HELLO_WORLD;\r\n"
equal(t, got, want)
}
func getCompiled(t *testing.T, file string) string {
code, err := ioutil.ReadFile(file)