php-parser/node/expr/cast/t_position_test.go

19 lines
314 B
Go
Raw Normal View History

2018-06-30 21:05:59 +00:00
package cast_test
import (
"testing"
"gotest.tools/assert"
2018-06-30 21:05:59 +00:00
"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()
assert.DeepEqual(t, expected, actual)
2018-06-30 21:05:59 +00:00
}
}