---
cases:
  - note: varreferences/embedded
    query: data.generated.p = x
    modules:
      - |
        package generated

        p contains x if {
        	v = [1, 2, 3]
        	__local0__ = v[i]
        	x = [{"a": __local0__}]
        }
    data: {}
    want_result:
      - x:
          - - a: 1
          - - a: 2
          - - a: 3
    sort_bindings: true
