github.com/Konstantin8105/c4go@v0.0.0-20240505174241-768bb1c65a51/ast/enum_constant_decl_test.go (about) 1 package ast 2 3 import ( 4 "testing" 5 ) 6 7 func TestEnumConstantDecl(t *testing.T) { 8 nodes := map[string]Node{ 9 `0x1660db0 <line:185:3> __codecvt_noconv 'int'`: &EnumConstantDecl{ 10 Addr: 0x1660db0, 11 Pos: NewPositionFromString("line:185:3"), 12 Position2: "", 13 IsReferenced: false, 14 Name: "__codecvt_noconv", 15 Type: "int", 16 ChildNodes: []Node{}, 17 }, 18 `0x3c77ba8 <line:59:3, col:65> col:3 referenced _ISalnum 'int'`: &EnumConstantDecl{ 19 Addr: 0x3c77ba8, 20 Pos: NewPositionFromString("line:59:3, col:65"), 21 Position2: "col:3", 22 IsReferenced: true, 23 Name: "_ISalnum", 24 Type: "int", 25 ChildNodes: []Node{}, 26 }, 27 } 28 29 runNodeTests(t, nodes) 30 }