---
cases:
  - note: union/union_3_sets
    query: data.generated.p = x
    modules:
      - |
        package generated

        p := x if {
        	s1 = {1, 2, 3}
        	s2 = {2, 3, 4}
        	s3 = {4, 5, 6}
        	union({s1, s2, s3}, x)
        }
    data: {}
    want_result:
      - x:
          - 1
          - 2
          - 3
          - 4
          - 5
          - 6
    sort_bindings: true
