blob: be7d6a4d039f8cf52d616892edd15b72d61c7373 [file] [log] [blame]
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
package sanitize
import (
"testing"
tfjson "github.com/hashicorp/terraform-json"
)
func TestCopyStructureCopy(t *testing.T) {
in := tfjson.UnknownConstantValue
out, err := copyStructureCopy(in)
if err != nil {
t.Fatal(err)
}
if in != out {
t.Fatal("did not shallow copy")
}
}