---
cases:
  - note: "globsmatch/regex.globs_match: ref"
    query: data.generated.p = x
    modules:
      - |
        package generated

        p contains x if {
        	__local0__ = data.d.e[x]
        	regex.globs_match("b.*", __local0__)
        }
    data:
      d:
        e:
          - bar
          - baz
    want_result:
      - x:
          - 0
          - 1
    sort_bindings: true
