check-qjson: Simplify utf8_string()
commit32846e93047899bdde498d8c6a14d291fe6fa4e2
authorMarkus Armbruster <armbru@redhat.com>
Thu, 23 Aug 2018 16:39:40 +0000 (23 18:39 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Fri, 24 Aug 2018 18:26:37 +0000 (24 20:26 +0200)
tree706523d09889e034095fa57b6ce006914679b2ff
parent6ad8444f6aadb8b43c78583cab09e8839c79305f
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>
tests/check-qjson.c