19 lines
342 B
Go
19 lines
342 B
Go
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)
|
|
}
|