package main

import (
	"reflect"
	"testing"

	"github.com/pulumi/pulumi/pkg/v3/codegen/internal/test/testdata/resource-args-python/go/example"

	"github.com/stretchr/testify/assert"
)

func TestArrayElemType(t *testing.T) {
	var arr example.PersonArray
	assert.Equal(t, reflect.TypeOf([]*example.Person(nil)), arr.ElementType())
}

func TestMapElemType(t *testing.T) {
	var m example.PersonMap
	assert.Equal(t, reflect.TypeOf(map[string]*example.Person(nil)), m.ElementType())
}
