php-parser/node/scalar/t_position_test.go
2018-07-01 00:05:59 +03:00

17 lines
287 B
Go

package scalar_test
import (
"testing"
"github.com/z7zmey/php-parser/position"
)
func TestPosition(t *testing.T) {
expected := position.NewPosition(1, 1, 1, 1)
for _, n := range nodes {
n.SetPosition(expected)
actual := n.GetPosition()
assertEqual(t, expected, actual)
}
}