Added more tests
This commit is contained in:
@ -109,14 +109,10 @@ func (expr *Expression) write(builder *strings.Builder) {
|
||||
|
||||
builder.WriteByte('(')
|
||||
builder.WriteString(expr.Token.Text())
|
||||
builder.WriteByte(' ')
|
||||
|
||||
for i, child := range expr.Children {
|
||||
for _, child := range expr.Children {
|
||||
builder.WriteByte(' ')
|
||||
child.write(builder)
|
||||
|
||||
if i != len(expr.Children)-1 {
|
||||
builder.WriteByte(' ')
|
||||
}
|
||||
}
|
||||
|
||||
builder.WriteByte(')')
|
||||
|
Reference in New Issue
Block a user