]> git.proxmox.com Git - qemu.git/commit
check-qjson: More thorough testing of UTF-8 in strings
authorMarkus Armbruster <armbru@redhat.com>
Tue, 5 Feb 2013 08:30:55 +0000 (09:30 +0100)
committerLuiz Capitulino <lcapitulino@redhat.com>
Thu, 21 Feb 2013 18:17:55 +0000 (15:17 -0300)
commit3960c41f05bf776cc23a4a3b861f729fa65295a5
tree8557a3282b9c9fc00136028cb73ec112e12a90a7
parent70aa41b56ce3f34fceac44e828ba2d8cc19523ee
check-qjson: More thorough testing of UTF-8 in strings

Test cases are scraped from Markus Kuhn's UTF-8 decoder capability and
stress test at
http://www.cl.cam.ac.uk/~mgk25/ucs/examples/UTF-8-test.txt

Unfortunately, both JSON parser and formatter misbehave right now.
This test expects current, incorrect results.  They're all clearly
marked, and are to be replaced by correct ones as the bugs get fixed.
See comments in new utf8_string() for details.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
tests/check-qjson.c