From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 5C15622B3D for ; Tue, 10 Jul 2018 08:14:25 -0400 (EDT) Received: from turing.freelists.org ([127.0.0.1]) by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id JuWtGavS3zSe for ; Tue, 10 Jul 2018 08:14:25 -0400 (EDT) Received: from smtp43.i.mail.ru (smtp43.i.mail.ru [94.100.177.103]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTPS id 18B3822991 for ; Tue, 10 Jul 2018 08:14:25 -0400 (EDT) Subject: [tarantool-patches] Re: [PATCH v1 1/1] app: fix parsing integers with exponent in json References: From: Vladislav Shpilevoy Message-ID: Date: Tue, 10 Jul 2018 15:14:08 +0300 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: tarantool-patches-bounce@freelists.org Errors-to: tarantool-patches-bounce@freelists.org Reply-To: tarantool-patches@freelists.org List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-Id: tarantool-patches List-subscribe: List-owner: List-post: List-archive: To: Kirill Shcherbatov , tarantool-patches@freelists.org Thanks for the patch! On 10/07/2018 13:42, Kirill Shcherbatov wrote: > Now it is possible to specify a number in exponential > form via all formats allowed by json standard. > json.decode('{"remained_amount":2.0e+3}') > json.decode('{"remained_amount":2.0E+3}') > json.decode('{"remained_amount":2e+3}') > json.decode('{"remained_amount":2E+3}') <-- fixed > > Closes #3514. > --- > https://github.com/tarantool/tarantool/issues/3514 > https://github.com/tarantool/tarantool/commits/kshch/gh-3514-json-integers-with-exp > > test/app/json.result | 19 +++++++++++++++++++ > test/app/json.test.lua | 6 ++++++ > third_party/lua-cjson/lua_cjson.c | 2 +- > 3 files changed, 26 insertions(+), 1 deletion(-) > create mode 100644 test/app/json.result > create mode 100644 test/app/json.test.lua > > diff --git a/test/app/json.result b/test/app/json.result > new file mode 100644 > index 0000000..434e593 > --- /dev/null > +++ b/test/app/json.result Please, do not create a new file. Reuse existing one.