Bram Moolenaar
62aec93bfd
patch 8.2.4257: Vim9: finding global function without g: prefix inconsistent
...
Problem: Vim9: finding global function without g: prefix but not finding
global variable is inconsistent.
Solution: Require using g: for a global function. Change the vim9.vim
script into a Vim9 script with exports. Fix that import in legacy
script does not work.
2022-01-29 21:45:34 +00:00
Yegappan Lakshmanan
27708e6c7b
patch 8.2.3908: cannot use a script-local function for 'foldtext'
...
Problem: Cannot use a script-local function for 'foldtext'.
Solution: Expand "s:" and "<SID>". (Yegappan Lakshmanan, closes #9411 )
2021-12-26 21:54:43 +00:00
Yegappan Lakshmanan
bc404bfb32
patch 8.2.3855: illegal memory access when displaying a blob
...
Problem: Illegal memory access when displaying a blob.
Solution: Append a NUL at the end. (Yegappan Lakshmanan, closes #9372 )
2021-12-19 19:19:31 +00:00
kuuote
04b7b4bf7f
patch 8.2.3728: internal error when passing range() to list2blob()
...
Problem: Internal error when passing range() to list2blob().
Solution: Materialize the list first. (closes #9262 )
2021-12-03 13:57:00 +00:00
Yegappan Lakshmanan
820d5525ca
patch 8.2.3446: not enough tests for empty string arguments
...
Problem: Not enough tests for empty string arguments.
Solution: Add tests, fix type check. (Yegappan Lakshmanan, closes #8881 )
2021-09-17 21:07:35 +02:00
Yegappan Lakshmanan
5dfe467432
patch 8.2.3438: cannot manipulate blobs
...
Problem: Cannot manipulate blobs.
Solution: Add blob2list() and list2blob(). (Yegappan Lakshmanan,
closes #8868 )
2021-09-14 17:54:30 +02:00
Sean Dewar
80d7395dcf
patch 8.2.3284: no error for insert() or remove() changing a locked blob
...
Problem: No error for insert() or remove() changing a locked blob.
Solution: Check a blob is not locked before changing it. (Sean Dewar,
closes #8696 )
2021-08-04 19:25:54 +02:00
Yegappan Lakshmanan
4490ec4e83
patch 8.2.3229: Vim9: runtime and compile time type checks are not the same
...
Problem: Vim9: runtime and compile time type checks are not the same.
Solution: Add more runtime type checks for builtin functions. (Yegappan
Lakshmanan, closes #8646 )
2021-07-27 22:00:44 +02:00
Yegappan Lakshmanan
0ad871dc4d
patch 8.2.3206: Vim9: argument types are not checked at compile time
...
Problem: Vim9: argument types are not checked at compile time.
Solution: Add several more type checks. (Yegappan Lakshmanan, closes #8611 )
2021-07-23 20:37:56 +02:00
Yegappan Lakshmanan
83494b4ac6
patch 8.2.3188: Vim9: argument types are not checked at compile time
...
Problem: Vim9: argument types are not checked at compile time.
Solution: Add several more type checks, also at runtime. (Yegappan
Lakshmanan, closes #8587 )
2021-07-20 17:51:51 +02:00
Bram Moolenaar
e8209b91b9
patch 8.2.2783: duplicate code for setting byte in blob, blob test may fail
...
Problem: Duplicate code for setting byte in blob, blob test may fail.
Solution: Call blob_set_append(). Test sort failure with "N".
2021-04-18 16:08:52 +02:00
Bram Moolenaar
39211cba72
patch 8.2.2782: Vim9: blob operations not fully tested
...
Problem: Vim9: blob operations not fully tested.
Solution: Make more blob tests run in Vim9 script. Fix filter(). Make
insert() give an error for a null blob, like add().
2021-04-18 15:48:04 +02:00
Bram Moolenaar
b7c21afef1
patch 8.2.2781: add() silently skips when adding to null list or blob
...
Problem: Add() silently skips when adding to null list or blob.
Solution: Give an error in Vim9 script. Allocate blob when it is NULL like
with list and dict.
2021-04-18 14:12:31 +02:00
Bram Moolenaar
d551d6c268
patch 8.2.2780: Vim9: for loop over blob doesn't work
...
Problem: Vim9: for loop over blob doesn't work.
Solution: Make it work.
2021-04-18 13:15:58 +02:00
Bram Moolenaar
51e933261b
patch 8.2.2777: Vim9: blob operations not tested in all ways
...
Problem: Vim9: blob operations not tested in all ways.
Solution: Run tests with CheckLegacyAndVim9Success(). Make blob assign with
index work.
2021-04-17 20:44:56 +02:00
Bram Moolenaar
0e3ff19196
patch 8.2.2765: Vim9: not all blob operations work
...
Problem: Vim9: not all blob operations work.
Solution: Run more tests also with Vim9 script and :def functions. Fix what
doesn't work.
2021-04-14 20:35:23 +02:00
Bram Moolenaar
68452177ca
patch 8.2.2757: Vim9: blob tests for legacy and Vim9 script are separate
...
Problem: Vim9: blob tests for legacy and Vim9 script are separate.
Solution: Add CheckLegacyAndVim9Success(). Make blob index assign work.
2021-04-12 21:21:02 +02:00
Bram Moolenaar
ffdf8adfa8
patch 8.2.1852: map() returing zero for NULL list is unexpected
...
Problem: map() returing zero for NULL list is unexpected.
Solution: Return the empty list. (closes #7133 )
2020-10-15 22:29:17 +02:00
Bram Moolenaar
845e0ee594
patch 8.2.1022: various parts of code not covered by tests
...
Problem: Various parts of code not covered by tests.
Solution: Add more tests. (Yegappan Lakshmanan, closes #6300 )
2020-06-20 16:05:32 +02:00
Bram Moolenaar
92b83ccfda
patch 8.2.0634: crash with null partial and blob
...
Problem: Crash with null partial and blob.
Solution: Check for NULL pointer. Add more tests. (Yegappan Lakshmanan,
closes #5984 )
2020-04-25 15:24:44 +02:00
Bram Moolenaar
9d8d0b5c64
patch 8.2.0633: crash when using null partial in filter()
...
Problem: Crash when using null partial in filter().
Solution: Fix crash. Add more tests. (Yegappan Lakshmanan, closes #5976 )
2020-04-24 22:47:31 +02:00
Bram Moolenaar
ea04a6e8ba
patch 8.2.0619: null dict is not handled like an empty dict
...
Problem: Null dict is not handled like an empty dict.
Solution: Fix the code and add tests. (Yegappan Lakshmanan, closes #5968 )
2020-04-23 13:38:02 +02:00
Bram Moolenaar
ad48e6c159
patch 8.2.0615: regexp benchmark stest is old style
...
Problem: Regexp benchmark stest is old style.
Solution: Make it a new style test. Fix using a NULL list. Add more tests.
(Yegappan Lakshmanan, closes #5963 )
2020-04-21 22:19:45 +02:00
Bram Moolenaar
08f4157c5c
patch 8.2.0610: some tests are still old style
...
Problem: Some tests are still old style.
Solution: Convert to new style tests. (Yegappan Lakshmanan, closes #5957 )
2020-04-20 16:50:00 +02:00
Bram Moolenaar
15352dc6ec
patch 8.2.0521: crash when reading a blob fails
...
Problem: Crash when reading a blob fails.
Solution: Avoid keeping a pointer to a freed blob object. (Dominique Pelle,
closes #5890 ) Adjust error messages.
2020-04-06 21:12:42 +02:00
Bram Moolenaar
0e05de4622
patch 8.2.0448: various functions not properly tested
...
Problem: Various functions not properly tested.
Solution: Add more tests, especially for failures. (Yegappan Lakshmanan,
closes #5843 )
2020-03-25 22:23:46 +01:00
Bram Moolenaar
8b63313510
patch 8.2.0418: code in eval.c not sufficiently covered by tests
...
Problem: Code in eval.c not sufficiently covered by tests.
Solution: Add more tests. (Yegappan Lakshmanan, closes #5815 )
2020-03-20 18:20:51 +01:00
Bram Moolenaar
92be6e3f46
patch 8.2.0184: blob test fails
...
Problem: Blob test fails.
Solution: Check for different error when float feature is missing.
2020-01-30 19:39:04 +01:00
Bram Moolenaar
5feabe00c4
patch 8.2.0183: tests fail when the float feature is disabled
...
Problem: Tests fail when the float feature is disabled.
Solution: Skip tests that don't work without float support.
2020-01-30 18:24:53 +01:00
Bram Moolenaar
49c57ce500
patch 8.2.0121: filter() and map() on blob don't work
...
Problem: filter() and map() on blob don't work.
Solution: Correct the code. (closes #5483 )
2020-01-15 20:51:34 +01:00
Bram Moolenaar
f9f24ce7a0
patch 8.1.1953: 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 21:17:39 +02:00
Bram Moolenaar
b7b9efbccf
patch 8.1.1671: copying a blob may result in it being locked
...
Problem: Copying a blob may result in it being locked.
Solution: Reset v_lock. (Ken Takata, closes #4648 )
2019-07-12 20:17:03 +02:00
Bram Moolenaar
a5be9b6248
patch 8.1.0802: negative index doesn't work for Blob
...
Problem: Negative index doesn't work for Blob.
Solution: Make it work, add a test. (closes #3856 )
2019-01-24 12:31:44 +01:00
Bram Moolenaar
dd29ea1805
patch 8.1.0798: changing a blob while iterating over it works strangely
...
Problem: Changing a blob while iterating over it works strangely.
Solution: Make a copy of the Blob before iterating.
2019-01-23 21:56:21 +01:00
Bram Moolenaar
0d17f0d1c0
patch 8.1.0793: incorrect error messages for functions that take a Blob
...
Problem: Incorrect error messages for functions that now take a Blob
argument.
Solution: Adjust the error messages. (Dominique Pelle, closes #3846 )
2019-01-22 22:20:38 +01:00
Bram Moolenaar
4131fd5509
patch 8.1.0765: string format of a Blob can't be parsed back
...
Problem: String format of a Blob can't be parsed back.
Solution: Use 0z format.
2019-01-17 16:32:53 +01:00
Bram Moolenaar
3d28b58c51
patch 8.1.0756: copy() does not make a copy of a Blob
...
Problem: copy() does not make a copy of a Blob.
Solution: Make a copy.
2019-01-15 22:44:17 +01:00
Bram Moolenaar
2ea773b468
patch 8.1.0755: error message for get() on a Blob with invalid index
...
Problem: Error message for get() on a Blob with invalid index.
Solution: Return an empty Blob, like get() on a List does.
2019-01-15 22:16:42 +01:00
Bram Moolenaar
05500ece62
patch 8.1.0742: not all Blob operations are tested
...
Problem: Not all Blob operations are tested.
Solution: Add more testing for Blob.
2019-01-13 19:10:33 +01:00
Bram Moolenaar
c0f5a78c15
patch 8.1.0736: code for Blob not sufficiently tested
...
Problem: Code for Blob not sufficiently tested.
Solution: Add more tests. Fix uncovered crash. Add test_null_blob().
2019-01-13 15:16:13 +01:00
Bram Moolenaar
6e5ea8d2a9
patch 8.1.0735: cannot handle binary data
...
Problem: Cannot handle binary data.
Solution: Add the Blob type. (Yasuhiro Matsumoto, closes #3638 )
2019-01-12 22:47:31 +01:00