diff --git a/lang/functions_test.go b/lang/functions_test.go index 0221f2500a5f..9e317a05c467 100644 --- a/lang/functions_test.go +++ b/lang/functions_test.go @@ -643,6 +643,17 @@ func TestFunctions(t *testing.T) { }, }, + "setdifference": { + { + `setdifference(["a", "b"], ["a", "c"], ["a", "d"])`, + cty.SetVal([]cty.Value{ + cty.StringVal("b"), + cty.StringVal("c"), + cty.StringVal("d"), + }), + }, + }, + "setintersection": { { `setintersection(["a", "b"], ["b", "c"], ["b", "d"])`, @@ -666,6 +677,15 @@ func TestFunctions(t *testing.T) { }, }, + "setsubtract": { + { + `setsubtract(["a", "b", "c"], ["a", "c"])`, + cty.SetVal([]cty.Value{ + cty.StringVal("b"), + }), + }, + }, + "setunion": { { `setunion(["a", "b"], ["b", "c"], ["d"])`,