diff --git a/terraform/diff_test.go b/terraform/diff_test.go index bd29aab55..00e958cfe 100644 --- a/terraform/diff_test.go +++ b/terraform/diff_test.go @@ -492,6 +492,21 @@ func TestInstanceDiffSame(t *testing.T) { }, true, }, + + { + &InstanceDiff{ + Attributes: map[string]*ResourceAttrDiff{ + "foo.#": &ResourceAttrDiff{ + Old: "0", + NewComputed: true, + }, + }, + }, + &InstanceDiff{ + Attributes: map[string]*ResourceAttrDiff{}, + }, + true, + }, } for i, tc := range cases {