github.com/Konstantin8105/c4go@v0.0.0-20240505174241-768bb1c65a51/ast/constant_array_type_test.go (about) 1 package ast 2 3 import ( 4 "testing" 5 ) 6 7 func TestConstantArrayType(t *testing.T) { 8 nodes := map[string]Node{ 9 `0x7f94ad016a40 'struct __va_list_tag [1]' 1 `: &ConstantArrayType{ 10 Addr: 0x7f94ad016a40, 11 Type: "struct __va_list_tag [1]", 12 Size: 1, 13 ChildNodes: []Node{}, 14 }, 15 `0x7f8c5f059d20 'char [37]' 37 `: &ConstantArrayType{ 16 Addr: 0x7f8c5f059d20, 17 Type: "char [37]", 18 Size: 37, 19 ChildNodes: []Node{}, 20 }, 21 } 22 23 runNodeTests(t, nodes) 24 }