github.com/Konstantin8105/c4go@v0.0.0-20240505174241-768bb1c65a51/ast/compound_stmt_test.go (about) 1 package ast 2 3 import ( 4 "testing" 5 ) 6 7 func TestCompoundStmt(t *testing.T) { 8 nodes := map[string]Node{ 9 `0x7fbd0f014f18 <col:54, line:358:1>`: &CompoundStmt{ 10 Addr: 0x7fbd0f014f18, 11 Pos: NewPositionFromString("col:54, line:358:1"), 12 ChildNodes: []Node{}, 13 }, 14 `0x7fbd0f8360b8 <line:4:1, line:13:1>`: &CompoundStmt{ 15 Addr: 0x7fbd0f8360b8, 16 Pos: NewPositionFromString("line:4:1, line:13:1"), 17 ChildNodes: []Node{}, 18 }, 19 } 20 21 runNodeTests(t, nodes) 22 }