aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/test_functions.vim
Commit message (Collapse)AuthorAge
* vim-patch:8.1.0189: function defined in sandbox not testedJan Edmund Lazo2019-06-25
| | | | | | Problem: Function defined in sandbox not tested. Solution: Add a text. https://github.com/vim/vim/commit/d90a144eda047816acffc7a8f297b43a7120710e
* vim-patch:8.1.0511: ml_get error when calling a function with a range (#9207)Jan Edmund Lazo2018-11-06
| | | | | Problem: ml_get error when calling a function with a range. Solution: Don't position the cursor after the last line. https://github.com/vim/vim/commit/9e353b5265bd7fa103caf4e5a9b3c99f344f548e
* vim-patch:8.1.0459: Test_executable fails when there is a dog in the systemJan Edmund Lazo2018-10-08
| | | | | | Problem: Test_executable fails when there is a dog in the system. Solution: Rename the dog. (Hirohito Higashi) https://github.com/vim/vim/commit/a05a0d325c7615439f4a42f00682b2ebad43c8d9
* oldtests: win: fix executable() assertionsJan Edmund Lazo2018-10-08
| | | | | | | | | | | | | | | | | | | | Windows has "Read and execute" permission via ACL but nvim and libuv do not support ACL. Windows does not support the executable bit in chmod-style permissions but it is safe to assume that if the file exists and is readable, then it is most likely executable. This means that win.ini and shell32.dll are "executable" because they exist, are readable, and are in PATH. PATHEXT does not affect the executable permission of a file; it exists to run files on the shell while omitting the file extension. Assume that PATHEXT is intended for cmd.exe only because powershell can execute powershell files (ie. *.ps1) without changing PATHEXT or related cmd.exe environment variable. In the future, nvim should check the outputs of 'assoc' and 'ftype', cmd.exe internal commands, or check the registry. Powershell can be used for ACL if C++/C# API is too difficult to use.
* vim-patch:8.1.0453: MS-Windows: executable() is not reliableJan Edmund Lazo2018-10-07
| | | | | | Problem: MS-Windows: executable() is not reliable. Solution: Use $PATHEXT properly. (Yasuhiro Matsumoto, closes vim/vim#3412) https://github.com/vim/vim/commit/8295666dc2c65e42135b91d5c61e2a140d002333
* vim-patch:8.1.0454: resolve() was not tested with a symlink cycleJan Edmund Lazo2018-10-06
| | | | | | Problem: resolve() was not tested with a symlink cycle. Solution: Add a test. (Dominique Pelle, closes vim/vim#3513) https://github.com/vim/vim/commit/261099070940fb64d4633a766ae3510fffe4171d
* vim-patch:8.1.0303: line2byte() is wrong for last line with 'noeol'Jan Edmund Lazo2018-08-21
| | | | | | Problem: line2byte() is wrong for last line with 'noeol' and 'nofixeol'. Solution: Fix off-by-one error. (Shane Harper, closes vim/vim#3351) https://github.com/vim/vim/commit/c26f7c60532a37a2bf0a5e69aa81081b440dfc38
* vim-patch:8.0.1630: trimming white space is not that easyJan Edmund Lazo2018-08-13
| | | | | | Problem: Trimming white space is not that easy. Solution: Add the trim() function. (Bukn, closes vim/vim#1280) https://github.com/vim/vim/commit/295ac5ab5e840af6051bed5ec9d9acc3c73445de
* vim-patch:8.1.0257: no test for pathshorten()Jan Edmund Lazo2018-08-09
| | | | | | Problem: No test for pathshorten(). Solution: Add a test. (Dominique Pelle, closes vim/vim#3295) https://github.com/vim/vim/commit/bfde0b482d25db43e9fc5a35c771b859b1eb8828
* vim-patch:8.1.0204: inputlist() is not testedJan Edmund Lazo2018-08-09
| | | | | | Problem: inputlist() is not tested. Solution: Add a test. (Dominique Pelle, closes vim/vim#3240) https://github.com/vim/vim/commit/947b39e761b8a95cc1bd37ad0c2c30552238809a
* vim-patch:8.1.0008: no test for strwidth()Jan Edmund Lazo2018-08-09
| | | | | | Problem: No test for strwidth(). Solution: Add a test. (Dominique Pelle, closes vim/vim#2931) https://github.com/vim/vim/commit/42ab17b8e32352210c4e273a4a4161a287d2c159
* vim-patch:8.0.1421: accessing invalid memory with overlong byte sequenceJan Edmund Lazo2018-08-09
| | | | | | Problem: Accessing invalid memory with overlong byte sequence. Solution: Check for NUL character. (test by Dominique Pelle, closes vim/vim#2485) https://github.com/vim/vim/commit/e6640ad44e2186bd3642b972115496d347cd1fdd
* vim-patch:8.0.1410: hang when using count() with an empty stringJan Edmund Lazo2018-08-09
| | | | | | Problem: Hang when using count() with an empty string. Solution: Return zero for an empty string. (Dominique Pelle, closes vim/vim#2465) https://github.com/vim/vim/commit/338e47fdfdf0d918dae50a5cbf0cf4f7be45b4f0
* vim-patch:8.0.1105: match() and matchend() are not testedJan Edmund Lazo2018-08-08
| | | | | | Problem: match() and matchend() are not tested. Solution: Add tests. (Ozaki Kiichi, closes vim/vim#2088) https://github.com/vim/vim/commit/1190cf68e27a123cf9f6fb57897782a3b9f7b810
* vim-patch:8.0.0794: checking translations fails with multiple NLJan Edmund Lazo2018-07-23
| | | | | | | Problem: The script to check translations fails if there is more than one NL in one line. Solution: Count the number of NL characters. Make count() accept a string. https://github.com/vim/vim/commit/9966b21a57277986217aa28237d6c247ebd060d7
* vim-patch:8.0.0548: saving the redo buffer only works one time (#8629)KunMing Xie2018-06-24
| | | | | | | Problem: Saving the redo buffer only works one time, resulting in the "." command not working well for a function call inside another function call. (Ingo Karkat) Solution: Save the redo buffer at every user function call. (closes vim/vim#1619) https://github.com/vim/vim/commit/d4863aa99e0527e9505c79cbeafc68a6832200bf
* vim-patch:8.0.0455: the mode test may hang (#8577)Jan Edmund Lazo2018-06-19
| | | | | | Problem: The mode test may hang in Test_mode(). (Michael Soyka) Solution: Set 'complete' to only search the current buffer (as suggested by Michael) https://github.com/vim/vim/commit/ffea8c99d9658b0b51a848a6f674851851e78fa7
* vim-patch:8.0.0625: shellescape() always escapes a newline (#8573)Jan Edmund Lazo2018-06-17
| | | | | | | Problem: shellescape() always escapes a newline, which does not work with some shells. (Harm te Hennepe) Solution: Only escape a newline when the "special" argument is non-zero. (Christian Brabandt, closes vim/vim#1590) https://github.com/vim/vim/commit/206155280def51160a9d81d983aed639015ffb44
* vim-patches: 8.0.0399 8.0.0401 (#8475)Justin M. Keyes2018-06-04
| | | | | | | | | | | | | | vim-patch:8.0.0399: crash when using balloon_show() when not supported Problem: Crash when using balloon_show() when not supported. (Hirohito Higashi) Solution: Check for balloonEval not to be NULL. (Ken Takata) https://github.com/vim/vim/commit/caf6434ac937cf26050276d7b474be2d2d6a06b3 vim-patch:8.0.0401: test fails with missing balloon feature Problem: Test fails with missing balloon feature. Solution: Add check for balloon feature. https://github.com/vim/vim/commit/a0107bdf8762d81cb49909ef02ffff9954092fb6 vim-patch:8.0.0414: balloon eval is not tested
* oldtests: comment out highlight group assertionsJan Edmund Lazo2018-06-03
| | | | | nvim always defines default highlight groups so hlexists() returns 1. This happens even with `-u NONE --cmd`.
* oldtests: comment out v:none assertionsJan Edmund Lazo2018-06-03
| | | | nvim does not support v:none for json_encode() and json_decode().
* vim-patch:8.0.1311: no test for strpart()Jan Edmund Lazo2018-06-02
| | | | | | Problem: No test for strpart(). Solution: Add a test. (Dominique Pelle, closes vim/vim#2347) https://github.com/vim/vim/commit/c7d16dce2f180c8ebfc8105ad090b0ea2deedcdc
* vim-patch:8.0.0435: some functions are not testedJan Edmund Lazo2018-06-02
| | | | | | Problem: Some functions are not tested. Solution: Add more tests for functions. (Dominique Pelle, closes vim/vim#1541) https://github.com/vim/vim/commit/41042f3cfdb91f946e553456278a995e61dd8578
* vim-patch:8.0.0261: not enough test coverage for eval functionsJan Edmund Lazo2018-06-02
| | | | | | Problem: Not enough test coverage for eval functions. Solution: Add more tests. (Dominique Pelle, closes vim/vim#1420) https://github.com/vim/vim/commit/24c2e48ef8b8b9053fa18039e6f6118337f908f8
* vim-patch: b:changedtick-related patchesJustin M. Keyes2018-01-01
| | | | | | | | | | | | | | | | | | | | | | | | | | vim-patch:8.0.0334 vim-patch:8.0.0335 vim-patch:8.0.0343 vim-patch:8.0.0345 Problem: Can't access b:changedtick from a dict reference. Solution: Make changedtick a member of the b: dict. (inspired by neovim vim/vim#6112) https://github.com/vim/vim/commit/79518e2ace5fce7b9c49060e462a6e935dba0a84 vim-patch:8.0.0343: b:changedtick can be unlocked Problem: b:changedtick can be unlocked, even though it has no effect. (Nikolai Pavlov) Solution: Add a check and error E940. (closes #1496) vim-patch:8.0.0345: islocked('d.changedtick') does not work Problem: islocked('d.changedtick') does not work. Solution: Make it work. vim-patch:8.0.0335: functions test fails Problem: Functions test fails. Solution: Use the right buffer number. https://github.com/vim/vim/commit/507647da3151f7ffccac1b217936240daa79849c
* vim-patch:8.0.0306 (#7675)KunMing Xie2017-12-02
| | | | | | Problem: mode() not sufficiently tested. Solution: Add more tests. (Yegappan Lakshmanan) https://github.com/vim/vim/commit/e971df39a5aac5d9b7e8033247dc18b12daa0eb8
* vim-patch:8.0.0283ckelsel2017-11-19
| | | | | | | | | Problem: The return value of mode() does not indicate that completion is active in Replace and Insert mode. (Zhen-Huan (Kenny) Hu) Solution: Add "c" or "x" for two kinds of completion. (Yegappan Lakshmanan, closes vim/vim#1397) Test some more modes. https://github.com/vim/vim/commit/e90858d0229444b3cd16b1cd3a8d61a24c435705
* vim-patch:8.0.0167James McCoy2017-06-06
| | | | | | | | Problem: str2nr() and str2float() do not always work with negative values. Solution: Be more flexible about handling signs. (LemonBoy, closes vim/vim#1332) Add more tests. https://github.com/vim/vim/commit/08243d26d22ad44a857d02c90071578577b8a55d
* vim-patch:8.0.0243Björn Linse2017-04-10
| | | | | | | | | | | Problem: When making a character lower case with tolower() changes the byte cound, it is not made lower case. Solution: Add strlow_save(). (Dominique Pelle, closes vim/vim#1406) https://github.com/vim/vim/commit/cc5b22b3bfdc0e9e835cf7871166badda31447bd Join almost identical strup_save and strlow_save functions to one Function.
* vim-patch:8.0.0482Justin M. Keyes2017-03-22
Problem: The setbufvar() function may mess up the window layout. (Kay Z.) Solution: Do not check the window to be valid if it is NULL. https://github.com/vim/vim/commit/2c90d51123fba44a90e09aa4a4f2b7d972dadb94