---
cases:
  - note: trim/trims '!¡' from string
    query: data.generated.p = x
    modules:
      - |
        package generated

        p contains __local0__ if {
        	trim("¡¡¡foo, bar!!!", "!¡", __local1__)
        	__local0__ = __local1__
        }
    data: {}
    want_result:
      - x:
          - foo, bar
    sort_bindings: true
