nswrap/ast/conditional_operator_test.go

19 lines
342 B
Go
Raw Normal View History

2019-04-09 11:52:21 -04:00
package ast
import (
"testing"
)
func TestConditionalOperator(t *testing.T) {
nodes := map[string]Node{
`0x7fc6ae0bc678 <col:6, col:89> 'void'`: &ConditionalOperator{
Addr: 0x7fc6ae0bc678,
Pos: NewPositionFromString("col:6, col:89"),
Type: "void",
ChildNodes: []Node{},
},
}
runNodeTests(t, nodes)
}