37c79205ad46187f54b2edbf6a468160935f14d9Joshua M. Clulow# This file and its contents are supplied under the terms of the
37c79205ad46187f54b2edbf6a468160935f14d9Joshua M. Clulow# Common Development and Distribution License ("CDDL"), version 1.0.
37c79205ad46187f54b2edbf6a468160935f14d9Joshua M. Clulow# You may only use this file in accordance with the terms of version
37c79205ad46187f54b2edbf6a468160935f14d9Joshua M. Clulow# 1.0 of the CDDL.
37c79205ad46187f54b2edbf6a468160935f14d9Joshua M. Clulow# A full copy of the text of the CDDL should have accompanied this
37c79205ad46187f54b2edbf6a468160935f14d9Joshua M. Clulow# source. A copy of the CDDL is also available via the Internet at
37c79205ad46187f54b2edbf6a468160935f14d9Joshua M. Clulow# Copyright (c) 2014, Joyent, Inc.
37c79205ad46187f54b2edbf6a468160935f14d9Joshua M. Clulow# This test checks UTF-8 parsing behaviour
37c79205ad46187f54b2edbf6a468160935f14d9Joshua M. Clulow"":"blank key",\
37c79205ad46187f54b2edbf6a468160935f14d9Joshua M. Clulow" ":"whitespace key",\
37c79205ad46187f54b2edbf6a468160935f14d9Joshua M. Clulow"\ttab\t":"tab key",\
37c79205ad46187f54b2edbf6a468160935f14d9Joshua M. Clulow"escapes":"escape \u001b newline \n cr \r backslash \\\\ quote \"",\
37c79205ad46187f54b2edbf6a468160935f14d9Joshua M. Clulow"escape array":[\
37c79205ad46187f54b2edbf6a468160935f14d9Joshua M. Clulow"escape \u001b",\
37c79205ad46187f54b2edbf6a468160935f14d9Joshua M. Clulow"alarm \u0007",\
37c79205ad46187f54b2edbf6a468160935f14d9Joshua M. Clulow"backspace \b",\
37c79205ad46187f54b2edbf6a468160935f14d9Joshua M. Clulow"formfeed \f",\
37c79205ad46187f54b2edbf6a468160935f14d9Joshua M. Clulow"newline \n",\
37c79205ad46187f54b2edbf6a468160935f14d9Joshua M. Clulow"vertical tab \u000b",\
37c79205ad46187f54b2edbf6a468160935f14d9Joshua M. Clulow"black circle (UTF-8) \u25cf"\
37c79205ad46187f54b2edbf6a468160935f14d9Joshua M. ClulowOUTPUT="$(${DIR}/../../bin/print_json <<'EOF'
37c79205ad46187f54b2edbf6a468160935f14d9Joshua M. Clulowadd_string "blank" "";
37c79205ad46187f54b2edbf6a468160935f14d9Joshua M. Clulowadd_string "" "blank key";
37c79205ad46187f54b2edbf6a468160935f14d9Joshua M. Clulowadd_string " " "whitespace key";
37c79205ad46187f54b2edbf6a468160935f14d9Joshua M. Clulowadd_string " tab " "tab key";
37c79205ad46187f54b2edbf6a468160935f14d9Joshua M. Clulowadd_string "escapes" "escape \x1b newline \n cr \r backslash \\ quote \"";
37c79205ad46187f54b2edbf6a468160935f14d9Joshua M. Clulowadd_string_array "escape array"
37c79205ad46187f54b2edbf6a468160935f14d9Joshua M. Clulow "escape \x1b"
37c79205ad46187f54b2edbf6a468160935f14d9Joshua M. Clulow "backspace \b"
37c79205ad46187f54b2edbf6a468160935f14d9Joshua M. Clulow "formfeed \f"
37c79205ad46187f54b2edbf6a468160935f14d9Joshua M. Clulow "vertical tab \v"
37c79205ad46187f54b2edbf6a468160935f14d9Joshua M. Clulow "black circle (UTF-8) \xe2\x97\x8f";