[tarantool-patches] Re: [PATCH v1 1/1] app: fix parsing integers with exponent in json

  • From: Vladislav Shpilevoy <v.shpilevoy@xxxxxxxxxxxxx>
  • To: Kirill Shcherbatov <kshcherbatov@xxxxxxxxxxxxx>, tarantool-patches@xxxxxxxxxxxxx
  • Date: Tue, 10 Jul 2018 15:14:08 +0300

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.


Other related posts: