---
cases:
  - note: regexfindallstringsubmatch/single match without captures
    query: data.generated.p = x
    modules:
      - |
        package generated

        p contains x if {
        	regex.find_all_string_submatch_n("a(x*)b", "-ab-", -1, __local0__)
        	x = __local0__
        }
    data: {}
    want_result:
      - x:
          - - - ab
              - ""
    sort_bindings: true
