aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/test_expr.vim
Commit message (Collapse)AuthorAge
* vim-patch:8.0.0351: no test for concatenating an empty stringckelsel2018-01-08
| | | | | | | | Problem: No test for concatenating an empty string that results from out of bounds indexing. Solution: Add a simple test. https://github.com/vim/vim/commit/218426896cbb2129aa4e85803ea97c5b57df1eaa
* vim-patch:8.0.0020Jurica Bradaric2017-07-29
| | | | | | | Problem: The regexp engines are not reentrant. Solution: Add regexec_T and save/restore the state when needed. https://github.com/vim/vim/commit/6100d02aab7c8294b581cb299250eea164b50e9d
* vim-patch:8.0.0004 (#7044)KunMing Xie2017-07-17
| | | | | | | Problem: A string argument for function() that is not a function name results in an error message with NULL. (Christian Brabandt) Solution: Use the argument for the error message. https://github.com/vim/vim/commit/5582ef14384525e8cec86016876d97a6b32dd548
* Merge remote-tracking branch 'origin/master' into vim-7.4.1975James McCoy2017-06-06
|\
| * vim-patch:8.0.0478James McCoy2017-06-06
| | | | | | | | | | | | | | Problem: Tests use assert_true(0) and assert_false(1) to report errors. Solution: Use assert_report(). https://github.com/vim/vim/commit/37175409d766ce67f2548dffa6d73451379b5737
* | vim-patch:7.4.2029James McCoy2017-06-04
| | | | | | | | | | | | | | Problem: printf() does not work with 64 bit numbers. Solution: use the "L" length modifier. (Ken Takata) https://github.com/vim/vim/commit/38ee6b041e73ad31c3b6b99d56d20833b59b2b57
* | vim-patch:7.4.1979James McCoy2017-06-04
|/ | | | | | | Problem: Getting value of binary option is wrong. (Kent Sibilev) Solution: Fix type cast. Add a test. https://github.com/vim/vim/commit/2acfbed9dbea990f129535de7ff3df360365130b
* vim-patch:7.4.2329 (#6341)Jurica Bradarić2017-03-23
| | | | | | Problem: Error for min() and max() contains %s. (Nikolay Pavlov) Solution: Pass the function name. (closes vim/vim#1040) https://github.com/vim/vim/commit/26b84339fd8766898bcf6a259cbc2e0c38689726
* vim-patch:7.4.2161 (#6340)raichoo2017-03-22
| | | | | | Problem: Expression test fails without conceal feature. Solution: Only check "conceal" with the conceal feature. https://github.com/vim/vim/commit/7ab6defcafe017a3ad58580a3e56dab705b1ed8b
* vim-patch:7.4.2291Jurica Bradaric2017-03-20
| | | | | | | Problem: printf() handles floats wrong when there is a sign. Solution: Fix placing the sign. Add tests. (Dominique Pelle) https://github.com/vim/vim/commit/04186095346daa60e82e981dad114de2b641d672
* vim-patch:7.4.2280Jurica Bradaric2017-03-20
| | | | | | | Problem: printf() doesn't handle infinity float values correctly. Solution: Add a table with possible infinity values. (Dominique Pelle) https://github.com/vim/vim/commit/e999782e369999539a1783a7ebe4eadcc6da28a8
* vim-patch:7.4.2266Jurica Bradaric2017-03-20
| | | | | | | | Problem: printf() test fails on Windows. "-inf" is not used. Solution: Check for Windows-specific values for "nan". Add sign to "inf" when appropriate. https://github.com/vim/vim/commit/9992237a3e791fbc0c1ebf743ece1b75e1488410
* vim-patch:7.4.2265Jurica Bradaric2017-03-07
| | | | | | | Problem: printf() isn't tested much. Solution: Add more tests for printf(). (Dominique Pelle) https://github.com/vim/vim/commit/76efafba2af36ae5f6c7b79b56c537fcbcdb386c
* vim-patch:7.4.2220Jurica Bradaric2017-03-06
| | | | | | | | Problem: printf() gives an error when the argument for %s is not a string. (Ozaki Kiichi) Solution: Behave like invoking string() on the argument. (Ken Takata) https://github.com/vim/vim/commit/e5a8f35b4286135f3469f3b00a6c2220553d9658
* vim-patch:7.4.2235Michael Ennen2017-02-14
| | | | | | | Problem: submatch() does not check for a valid argument. Solution: Give an error if the argument is out of range. (Dominique Pelle) https://github.com/vim/vim/commit/989f592f7ffcbafdc4ec35cee4dc65bd053e2077
* vim-patch:7.4.2233Michael Ennen2017-02-14
| | | | | | | Problem: Crash when using funcref() with invalid name. (Dominique Pelle) Solution: Check for NULL translated name. https://github.com/vim/vim/commit/843b884461de1c79a1d2748549776fb13fc94360
* vim-patch:7.4.2137Michael Ennen2017-02-14
| | | | | | | | | Problem: Using function() with a name will find another function when it is redefined. Solution: Add funcref(). Refer to lambda using a partial. Fix several reference counting issues. https://github.com/vim/vim/commit/437bafe4c8a83ed71ee006eda7f54b65a90f0d4c
* vim-patch:7.4.2134Michael Ennen2017-02-14
| | | | | | | Problem: No error for using function() badly. Solution: Check for passing wrong function name. (Ken Takata) https://github.com/vim/vim/commit/b54c3ff3174dbb5dfbfcabdf95200b047beaa644
* vim-patch:7.4.2090Michael Ennen2017-02-14
| | | | | | | | Problem: Using submatch() in a lambda passed to substitute() is verbose. Solution: Use a static list and pass it as an optional argument to the function. Fix memory leak. https://github.com/vim/vim/commit/df48fb456fb6bf63d94cad9b302ff01d8ee8d311
* vim-patch:7.4.2072Michael Ennen2017-02-14
| | | | | | | Problem: substitute() does not support a Funcref argument. Solution: Support a Funcref like it supports a string starting with "\=". https://github.com/vim/vim/commit/72ab729c3dcdea0fba44d8e676602c847e841bcd
* test: fix syntax errorJustin M. Keyes2017-01-15
| | | | Also re-arrange the test to match Vim upstream.
* vim-patch:7.4.2160 (#5952)Shougo2017-01-15
| | | | | | Problem: setmatches() mixes up values. (Nikolai Pavlov) Solution: Save the string instead of reusing a shared buffer. https://github.com/vim/vim/commit/7dc5e2e486fe0287601968e535902a41a39f65bb
* vim-patch:7.4.1968 (#5949)Shougo2017-01-15
| | | | | | Problem: Invalid memory access with "\<C-">. Solution: Do not recognize this as a special character. (Dominique Pelle) https://github.com/vim/vim/commit/1d90a5a5af84250e226f8a9121e771f7b72aa894
* vim-patch:7.4.1847lonerover2017-01-03
| | | | | | | | | Problem: Getting an item from a NULL dict crashes. Setting a register to a NULL list crashes. (Nikolai Pavlov, issue vim/vim#768) Comparing a NULL dict with a NULL dict fails. Solution: Properly check for NULL. https://github.com/vim/vim/commit/13ddc5c35921efa69e980284117b6db6465e019c
* vim-patch:7.4.1816 (#5833)lonerover2016-12-26
| | | | | | Problem: Looping over a null list throws an error. Solution: Skip over the for loop. https://github.com/vim/vim/commit/d8585eded6359f1d7e1981e96ae775efd077c638
* vim-patch:7.4.1607Michael Ennen2016-12-12
| | | | | | | | Problem: Comparing a function that exists on two dicts is not backwards compatible. (Thinca) Solution: Only compare the function, not what the partial adds. https://github.com/vim/vim/commit/f0e86a0dbddc18568910e9e4aaae0cd88ca8087a
* Merge pull request #5664 from brcolow/vim-7.4.1707James McCoy2016-12-01
|\ | | | | vim-patch:7.4.1707
| * vim-patch:7.4.1707Michael Ennen2016-11-25
| | | | | | | | | | | | | | Problem: Cannot use empty dictionary key, even though it can be useful. Solution: Allow using an empty dictionary key. https://github.com/vim/vim/commit/0921ecff1c5a74541bad6c073e8ade32247403d8
* | vim-patch:7.4.1660Shougo Matsushita2016-11-22
|/ | | | | | | Problem: has('patch-7.4.1') doesn't work. Solution: Fix off-by-one error. (Thinca) https://github.com/vim/vim/commit/819821c5a95fc60797ecbb5e5ca1302e397e3d9a
* vim-patch:7.4.1734Michael Ennen2016-10-23
| | | | | | | Problem: Test fails when not using utf-8. Solution: Split test in regularand utf-8 part. https://github.com/vim/vim/commit/0f518a8f4d4be4cac10389680f6bd5e3781f94b0
* vim-patch:7.4.1730Michael Ennen2016-10-23
Problem: It is not easy to get a character out of a string. Solution: Add strgetchar() and strcharpart(). https://github.com/vim/vim/commit/58de0e2dcc1f2d251b74892a06d71a14973f3187