Test "bugs/str-lit-utf8"
Expected: 👍 accept · Size: 557.0 KB · Lines: 10.3 k · lean4export: 3.2.0 · Lean: 4.38.0-nightly-2026-12-03 · 📄 Declaration · 🔗 Source
Non-ASCII UTF-8 string literal reduction.
A string literal reduces to String.ofList of Char.ofNat
applied to each Unicode scalar value, not each raw UTF-8 byte. This test
checks "é€😀" = String.ofList [Char.ofNat 0xE9, Char.ofNat 0x20AC, Char.ofNat 0x1F600]
by reflexivity, covering 2-, 3-, and 4-byte UTF-8 sequences.
rpylean rejected this test because W_LitStr.build_str_expr iterated raw
UTF-8 bytes instead of decoding UTF-8 codepoints.