Test "other/str-escape-surrogate-pair"
Expected: 馃憤 accept 路 Size: 556.2鈥疜B 路 Lines: 10.3鈥痥 路 lean4export: 3.2.0 路 Lean: 4.38.0-nightly-2026-12-03 路 馃搫 Declaration 路 馃敆 Source
s : "\ud83d\ude00" = "馃榾" := rfl, where the left side writes U+1F600
as a surrogate pair of JSON escapes and the right side as UTF-8 bytes
(F0 9F 98 80).
A JSON string can spell the same string in several ways: a character can
be written as itself or as a \u escape (with hexadecimal digits in either
case), and a character above U+FFFF as an escaped surrogate pair. All
spellings denote the same String.
Generated by invalid-utf8/gen.py from an export of invalid-utf8/Lit.lean.
See Lean issue #16877.