github.com/Konstantin8105/c4go@v0.0.0-20240505174241-768bb1c65a51/ast/aligned_attr_test.go (about) 1 package ast 2 3 import ( 4 "testing" 5 ) 6 7 func TestAlignedAttr(t *testing.T) { 8 nodes := map[string]Node{ 9 `0x7f8a1d8ccfd0 <col:47, col:57> aligned`: &AlignedAttr{ 10 Addr: 0x7f8a1d8ccfd0, 11 Pos: NewPositionFromString("col:47, col:57"), 12 IsAligned: true, 13 ChildNodes: []Node{}, 14 }, 15 `0x2c8ba10 <col:42>`: &AlignedAttr{ 16 Addr: 0x2c8ba10, 17 Pos: NewPositionFromString("col:42"), 18 IsAligned: false, 19 ChildNodes: []Node{}, 20 }, 21 } 22 23 runNodeTests(t, nodes) 24 }