2019-04-09 11:52:21 -04:00
|
|
|
package ast
|
|
|
|
|
|
|
|
import (
|
|
|
|
"reflect"
|
|
|
|
"testing"
|
|
|
|
|
2019-05-29 22:36:49 -04:00
|
|
|
"git.wow.st/gmp/nswrap/util"
|
2019-04-09 11:52:21 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
func TestArrayFiller(t *testing.T) {
|
|
|
|
expected := &ArrayFiller{
|
|
|
|
ChildNodes: []Node{},
|
|
|
|
}
|
|
|
|
actual := Parse(`array filler`)
|
|
|
|
|
|
|
|
if !reflect.DeepEqual(expected, actual) {
|
|
|
|
t.Errorf("%s", util.ShowDiff(formatMultiLine(expected),
|
|
|
|
formatMultiLine(actual)))
|
|
|
|
}
|
|
|
|
}
|