---
cases:
  - note: withkeyword/with mock iteration on arrays
    query: data.generated.p = x
    modules:
      - |
        package generated

        q contains 1

        q contains 2

        p contains x if {
        	data.generated.q[_] = x with data.generated.q as [3, 4]
        }
    data: {}
    want_result:
      - x:
          - 3
          - 4
    sort_bindings: true
