about summary refs log tree commit diff
path: root/tvix/eval/src/tests/tvix_tests/eval-okay-escape-string-correct-char-boundaries.nix
# Regression test for a bug where tvix would crash in nix_escape_string
# because it counted the string position by unicode code point count,
# but then used it as a byte index for slicing. Consequently, it would
# try slicing 💭 in half, thinking the first element to be escaped was
# at byte index 2 (i.e. the quote).
"💭(\":thonking:\")"