---
cases:
  - data:
    modules:
      - |
        package test

        # Sets are unordered, so the output is not guaranteed.
        # These are theoretically possible:
        possibilities = {
          "1,2,3",
          "2,3,1",
          "3,1,2",
          "3,2,1",
          "2,1,3",
          "1,3,2"
        }

        p {
          x := concat(",", {"1", "2", "3"})
          possibilities[x]
        }
    note: "strings/concat: set"
    query: data.test.p = x
    want_result:
      - x: true
