func TestToken(t *testing.T) { l := new(compiler.Lexer).Init("package") tok := l.NextToken() // fmt.Printf("%s\n", tok) if tok.GetTokenType() != compiler.PACKAGE { t.Fatalf("Fail : PACKAGE not found") } }