---
cases:
  - note: comparisonexpr/equals
    query: data.generated.p = x
    modules:
      - |
        package generated

        p if {
        	1 = 1
        	data.a[i] = x
        	x = 2
        }
    data:
      a:
        - 1
        - 2
        - 3
        - 4
    want_result:
      - x: true
