ChaiScript/unittests/json_unicode_8.chai
leftibot 91e50bc80f Add tests for JSON \u unicode escape sequences
Tests cover ASCII range, 2-byte UTF-8 (U+00C4), 3-byte UTF-8 (U+20AC),
mixed text, multiple escapes, uppercase hex, and unicode in object values.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-10 19:49:56 -06:00

4 lines
149 B
ChaiScript

// Test JSON \u escape inside an object value
var m = from_json("{\"key\": \"\\u00C4\\u00D6\\u00DC\"}")
assert_equal(m["key"], "\u00C4\u00D6\u00DC")