summary refs log tree commit diff stats
path: root/scripts/qapi/commands.py
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2018-08-23 18:39:40 +0200
committerMarkus Armbruster <armbru@redhat.com>2018-08-24 20:26:37 +0200
commit32846e93047899bdde498d8c6a14d291fe6fa4e2 (patch)
tree706523d09889e034095fa57b6ce006914679b2ff /scripts/qapi/commands.py
parent6ad8444f6aadb8b43c78583cab09e8839c79305f (diff)
downloadfocaccia-qemu-32846e93047899bdde498d8c6a14d291fe6fa4e2.tar.gz
focaccia-qemu-32846e93047899bdde498d8c6a14d291fe6fa4e2.zip
check-qjson: Simplify utf8_string()
The previous commit made utf8_string()'s test_cases[].utf8_in
superfluous: we can use .json_in instead.  Except for the case testing
U+0000.  \x00 doesn't work in C strings, so it tests \\u0000 instead.
But testing \\uXXXX is escaped_string()'s job.  It's covered there.
Test U+0001 here, and drop .utf8_in.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <20180823164025.12553-14-armbru@redhat.com>
Diffstat (limited to 'scripts/qapi/commands.py')
0 files changed, 0 insertions, 0 deletions