---
cases:
  - data: {}
    modules:
      - |
        package generated

        p = [x, y, z] {
          io.jwt.decode("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIwIiwiaXNzIjoib3BhIn0.XmVoLoHI3pxMtMO_WRONMSJzGUDP9pDjy8Jp0_tdRXY", [x, y, z])
        }
    note: jwtbuiltins/simple
    query: data.generated.p = x
    want_result:
      - x:
          - alg: HS256
            typ: JWT
          - iss: opa
            sub: "0"
          - 5e65682e81c8de9c4cb4c3bf59138d3122731940cff690e3cbc269d3fb5d4576
