nswrap/ast/compound_assign_operator_test.go
2019-04-09 11:52:21 -04:00

22 lines
528 B
Go

package ast
import (
"testing"
)
func TestCompoundAssignOperator(t *testing.T) {
nodes := map[string]Node{
`0x2dc5758 <line:5:2, col:7> 'int' '+=' ComputeLHSTy='int' ComputeResultTy='int'`: &CompoundAssignOperator{
Addr: 0x2dc5758,
Pos: NewPositionFromString("line:5:2, col:7"),
Type: "int",
Opcode: "+=",
ComputationLHSType: "int",
ComputationResultType: "int",
ChildNodes: []Node{},
},
}
runNodeTests(t, nodes)
}