From: Kirill Shcherbatov <kshcherbatov@tarantool.org>
To: tarantool-patches@freelists.org,
Alexander Turenko <alexander.turenko@tarantool.org>
Subject: [tarantool-patches] Re: [PATCH v1 1/1] implement mp_stack class
Date: Mon, 21 Jan 2019 12:46:49 +0300 [thread overview]
Message-ID: <bf385b3d-bc5d-656c-31d1-90af0826a77c@tarantool.org> (raw)
In-Reply-To: <1ba698d1-8450-f2d3-7717-11adbf0d5f4f@tarantool.org>
diff --git a/test/msgpuck.c b/test/msgpuck.c
index 6d5a7a5..cb23ec3 100644
--- a/test/msgpuck.c
+++ b/test/msgpuck.c
@@ -1108,7 +1108,7 @@ test_mpstack()
char tuple[1024];
char *wptr = tuple;
- const char *descr = "{\"first\", {\"key1\": \"one\", \"key2\": {2}}, {3}}";
+ const char *descr = "[\"first\", [\"key1\": \"one\", \"key2\": [2]], [3]]";
wptr = mp_encode_array(wptr, 3);
wptr = mp_encode_str(wptr, "first", 5);
wptr = mp_encode_map(wptr, 2);
@@ -1139,7 +1139,7 @@ test_mpstack()
mp_decode_array(&rptr) :
mp_decode_map(&rptr);
mp_stack_push(&mp_stack, type, size);
- wptr += sprintf(wptr, "{");
+ wptr += sprintf(wptr, "[");
} else {
if (type == MP_STR) {
const char *str = mp_decode_str(&rptr, &len);
@@ -1155,7 +1155,7 @@ test_mpstack()
}
while (mp_stack_advance(&mp_stack)) {
mp_stack_pop(&mp_stack);
- wptr += sprintf(wptr, "}");
+ wptr += sprintf(wptr, "]");
if (mp_stack_is_empty(&mp_stack))
goto end;
if (mp_stack_top_is_internal_item(&mp_stack))
next prev parent reply other threads:[~2019-01-21 9:46 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-16 13:36 Kirill Shcherbatov
2019-01-16 18:03 ` Konstantin Osipov
2019-01-17 7:26 ` Kirill Shcherbatov
2019-01-17 7:32 ` [tarantool-patches] " Kirill Shcherbatov
2019-01-17 11:58 ` Alexander Turenko
2019-01-17 12:28 ` [tarantool-patches] " Kirill Shcherbatov
2019-01-17 16:34 ` Alexander Turenko
2019-01-18 7:03 ` Kirill Shcherbatov
2019-01-18 10:32 ` Kirill Shcherbatov
2019-01-21 9:46 ` Kirill Shcherbatov [this message]
2019-01-21 11:25 ` Alexander Turenko
2019-01-21 12:35 ` Kirill Shcherbatov
2019-01-21 20:25 ` Vladimir Davydov
2019-01-22 12:28 ` Kirill Shcherbatov
2019-01-22 20:21 ` Vladimir Davydov
2019-01-23 8:23 ` Kirill Shcherbatov
2019-01-23 10:06 ` Vladimir Davydov
2019-01-23 11:39 ` Kirill Shcherbatov
2019-01-24 17:58 ` Konstantin Osipov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bf385b3d-bc5d-656c-31d1-90af0826a77c@tarantool.org \
--to=kshcherbatov@tarantool.org \
--cc=alexander.turenko@tarantool.org \
--cc=tarantool-patches@freelists.org \
--subject='[tarantool-patches] Re: [PATCH v1 1/1] implement mp_stack class' \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox