---
cases:
  - note: jsonbuiltins/yaml round-trip
    query: data.generated.p = x
    modules:
      - |
        package generated

        p := y if {
        	yaml.marshal([{"foo": {1, 2, 3}}], x)
        	yaml.unmarshal(x, y)
        }
    data: {}
    want_result:
      - x:
          - foo:
              - 1
              - 2
              - 3
