Bram Moolenaar
73e28dcc61
patch 9.0.0491: no good reason to build without the float feature
...
Problem: No good reason to build without the float feature.
Solution: Remove configure check for float and "#ifdef FEAT_FLOAT".
2022-09-17 21:08:33 +01:00
LemonBoy
beb0ef1ab2
patch 8.2.4695: JSON encoding could be faster
...
Problem: JSON encoding could be faster.
Solution: Optimize encoding JSON strings. (closes #10086 )
2022-04-05 15:07:32 +01:00
Bram Moolenaar
a853089479
patch 8.2.2488: json_encode() gives generic argument error
...
Problem: json_encode() gives generic argument error.
Solution: Mention the type that can't be encoded. (issue #7802 )
2021-02-08 21:53:09 +01:00
Bram Moolenaar
e3c65ce4e5
patch 8.2.1863: json code not sufficiently tested
...
Problem: Json code not sufficiently tested.
Solution: Add more test cases. (Dominique Pellé, closes #7166 )
2020-10-19 13:12:33 +02:00
Bram Moolenaar
afe8cf6170
patch 8.2.1803: a few failures are not tested
...
Problem: A few failures are not tested.
Solution: Test a few failures. (Dominique Pellé, closes #7075 )
2020-10-05 20:07:18 +02:00
Bram Moolenaar
6d91bcb4d2
patch 8.2.1432: various inconsistencies in test files
...
Problem: Various inconsistencies in test files.
Solution: Add modelines where they were missing. Use Check commands instead
of silently skipping over tests. Adjust indents and comments.
(Ken Takata, closes #6695 )
2020-08-12 18:50:36 +02:00
Bram Moolenaar
6d3a7213f5
patch 8.2.1188: memory leak with invalid json input
...
Problem: Memory leak with invalid json input.
Solution: Free all keys at the end. (Dominique Pellé, closes #6443 ,
closes #6442 )
2020-07-12 14:34:00 +02:00
Bram Moolenaar
9b7bf9e98f
patch 8.2.1183: assert_fails() checks the last error message
...
Problem: assert_fails() checks the last error message.
Solution: Check the first error, it is more relevant. Fix all the tests
that rely on the old behavior.
2020-07-11 22:14:59 +02:00
Bram Moolenaar
21e5bdd271
patch 8.2.1181: json code not fully tested
...
Problem: Json code not fully tested.
Solution: Add more test coverage. (Dominique Pellé, closes #6433 )
2020-07-11 14:26:08 +02:00
Bram Moolenaar
a09195f29e
patch 8.2.0800: errors from failing test are unclear
...
Problem: Errors from failing test are unclear.
Solution: Include text where parsing failed.
2020-05-19 22:38:59 +02:00
Bram Moolenaar
02b31110d3
patch 8.1.1954: more functions can be used as a method
...
Problem: More functions can be used as a method.
Solution: Allow more functions to be used as a method.
2019-08-31 22:16:38 +02:00
Bram Moolenaar
16e9b85113
patch 8.1.1355: obvious mistakes are accepted as valid expressions
...
Problem: Obvious mistakes are accepted as valid expressions.
Solution: Be more strict about parsing numbers. (Yasuhiro Matsumoto,
closes #3981 )
2019-05-19 19:59:35 +02:00
Bram Moolenaar
04af19637c
patch 8.1.1158: json encoded string is sometimes missing the final NUL
...
Problem: Json encoded string is sometimes missing the final NUL.
Solution: Add the NUL. Also for log messages.
2019-04-12 21:19:04 +02:00
Bram Moolenaar
30276f2beb
patch 8.1.0811: too many #ifdefs
...
Problem: Too many #ifdefs.
Solution: Graduate FEAT_MBYTE, the final chapter.
2019-01-24 17:59:39 +01:00
Bram Moolenaar
5f6b379ff3
patch 8.1.0731: JS encoding does not handle negative infinity
...
Problem: JS encoding does not handle negative infinity.
Solution: Add support for negative infinity for JS encoding. (Dominique
Pelle, closes #3792 )
2019-01-12 14:24:27 +01:00
Bram Moolenaar
625f0c1eb7
patch 8.0.1602: crash in parsing JSON
...
Problem: Crash in parsing JSON.
Solution: Fail when using array or dict as dict key. (Damien)
2018-03-13 13:10:41 +01:00
Bram Moolenaar
b29d328eb4
patch 8.0.1391: encoding empty string to JSON sometimes gives "null"
...
Problem: Encoding empty string to JSON sometimes gives "null".
Solution: Handle NULL string as empty string. (closes #2446 )
2017-12-15 21:25:01 +01:00
Bram Moolenaar
059b7482a2
patch 8.0.0309: cannot use an empty key in json
...
Problem: Cannot use an empty key in json.
Solution: Allow for using an empty key.
2017-02-05 16:34:43 +01:00
Bram Moolenaar
83381f7129
patch 8.0.0180: error E937 is used twice
...
Problem: Error E937 is used both for duplicate key in JSON and for trying
to delete a buffer that is in use.
Solution: Rename the JSON error to E938. (Norio Takagi, closes #1376 )
2017-01-14 14:36:08 +01:00
Bram Moolenaar
ee142add22
patch 8.0.0171: JS style JSON does not support single quotes
...
Problem: JS style JSON does not support single quotes.
Solution: Allow for single quotes. (Yasuhiro Matsumoto, closes #1371 )
2017-01-11 21:50:08 +01:00
Bram Moolenaar
03c60c1573
patch 8.0.0166: JSON with a duplicate key gives an internal error
...
Problem: JSON with a duplicate key gives an internal error. (Lcd)
Solution: Give a normal error. Avoid an error when parsing JSON from a
remote client fails.
2017-01-10 15:15:37 +01:00
Bram Moolenaar
ac105ed3c4
patch 7.4.2086
...
Problem: Using the system default encoding makes tests unpredictable.
Solution: Always use utf-8 or latin1 in the new style tests. Remove setting
encoding and scriptencoding where it is not needed.
2016-07-21 20:33:32 +02:00
Bram Moolenaar
fc2457e21d
patch 7.4.1455
...
Problem: JSON decoding test for surrogate pairs is in the wrong place.
Solution: Move the test lines. (Ken Takata)
2016-02-28 20:04:09 +01:00
Bram Moolenaar
1c39102666
patch 7.4.1450
...
Problem: Json encoding still fails when encoding is not utf-8.
Solution: Set 'encoding' before :scriptencoding. Run the json test
separately to avoid affecting other tests.
2016-02-28 18:04:00 +01:00
Bram Moolenaar
c5215e943b
patch 7.4.1448
...
Problem: JSON tests fail if 'encoding' is not utf-8.
Solution: Force encoding to utf-8.
2016-02-28 16:29:50 +01:00
Bram Moolenaar
b6ff81188d
patch 7.4.1434
...
Problem: JSON encoding doesn't hanel surrogate pair.
Solution: Improve multi-byte handling of JSON. (Yasuhiro Matsumoto)
2016-02-27 18:41:27 +01:00
Bram Moolenaar
7ce686c990
patch 7.4.1430
...
Problem: When encoding JSON, turning NaN and Infinity into null without
giving an error is not useful.
Solution: Pass NaN and Infinity on. If the receiver can't handle them it
will generate the error.
2016-02-27 16:33:22 +01:00
Bram Moolenaar
f1b6ac7229
patch 7.4.1407
...
Problem: json_encode() does not handle NaN and inf properly. (David
Barnett)
Solution: For JSON turn them into "null". For JS use "NaN" and "Infinity".
Add isnan().
2016-02-23 21:26:43 +01:00
Bram Moolenaar
7823a3bd2e
patch 7.4.1304
...
Problem: Function names are difficult to read.
Solution: Rename jsonencode to json_encode, jsondecode to json_decode,
jsencode to js_encode and jsdecode to js_decode.
2016-02-11 21:08:32 +01:00
Bram Moolenaar
595e64e259
patch 7.4.1279
...
Problem: jsonencode() is not producing strict JSON.
Solution: Add jsencode() and jsdecode(). Make jsonencode() and jsondecode()
strict.
2016-02-07 19:19:53 +01:00
Bram Moolenaar
55fab439a6
patch 7.4.1278
...
Problem: When jsonencode() fails it still returns something.
Solution: Return an empty string on failure.
2016-02-07 16:53:13 +01:00
Bram Moolenaar
4f8b8faec3
patch 7.4.1269
...
Problem: Encoding {'key':} to JSON doesn't give an error (Tyru)
Solution: Give an error.
2016-02-06 18:42:07 +01:00
Bram Moolenaar
fcaaae6b3f
patch 7.4.1166
...
Problem: Can't encode a Funcref into JSON. jsonencode() doesn't handle the
same list or dict twice properly. (Nikolay Pavlov)
Solution: Give an error. Reset copyID when the list or dict is finished.
2016-01-24 16:49:11 +01:00
Bram Moolenaar
6039c7f053
patch 7.4.1164
...
Problem: No tests for comparing special variables. Error in jsondecode()
not reported. test_json does not work Japanse system.
Solution: Set scriptencoding. (Ken Takata) Add a few more tests. Add error.
2016-01-24 15:05:32 +01:00
Bram Moolenaar
f95534c3d4
patch 7.4.1157
...
Problem: type() does not work for v:true, v:none, etc.
Solution: Add new type numbers.
2016-01-23 21:59:52 +01:00
Bram Moolenaar
520e1e41f3
patch 7.4.1154
...
Problem: No support for JSON.
Solution: Add jsonencode() and jsondecode(). Also add v:false, v:true,
v:null and v:none.
2016-01-23 19:46:28 +01:00