(t *testing.T)
| 7 | ) |
| 8 | |
| 9 | func TestExprDialectInit(t *testing.T) { |
| 10 | // Make sure we can init more than once, see if it panics |
| 11 | ExpressionDialect.Init() |
| 12 | for _, stmt := range ExpressionDialect.Statements { |
| 13 | assert.NotEqual(t, "", stmt.String()) |
| 14 | } |
| 15 | } |
| 16 | |
| 17 | func tokenexpr(lexString string, runLex StateFn) Token { |
| 18 | l := NewLexer(lexString, ExpressionDialect) |