---
cases:
  - data: {}
    modules:
      - "package generated\n\np = x {\n  io.jwt.encode_sign_raw(`{\"typ\":\"JWT\",\r\n\
        \ \"alg\":\"HS256\"}`, `{\"iss\":\"joe\",\r\n \"exp\":1300819380,\r\n \"http://example.com/is_root\"\
        :true}`, `{\n\"kty\":\"oct\",\n\"k\":\"AyM1SysPpbyDfgZld3umj1qzKObwVMkoqQ-EstJQLr_T-1qS0gZH75aKtMN3Yj0iPS4hcgUuTwjAzZr1Z9CAow\"\
        \n}`, x)\n}\n"
    note: jwtencodesignraw/https://tools.ietf.org/html/rfc7515#appendix-A.1
    query: data.generated.p = x
    want_result:
      - x: eyJ0eXAiOiJKV1QiLA0KICJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJqb2UiLA0KICJleHAiOjEzMDA4MTkzODAsDQogImh0dHA6Ly9leGFtcGxlLmNvbS9pc19yb290Ijp0cnVlfQ.dBjftJeZ4CVP-mB92K27uhbUJU1p1r_wW1gFWFOEjXk
