diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2021-10-05 13:58:06 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-05 10:58:06 -0700 |
commit | 6a930a9dc4ddf190b528c945f19bc0a0bad2cc29 (patch) | |
tree | decfefe27af017b40f26d8fc59cf77bebf8891a7 | |
parent | 59edd377d3b5a05cfb412b4b762cc6d74bfed014 (diff) | |
download | rneovim-6a930a9dc4ddf190b528c945f19bc0a0bad2cc29.tar.gz rneovim-6a930a9dc4ddf190b528c945f19bc0a0bad2cc29.tar.bz2 rneovim-6a930a9dc4ddf190b528c945f19bc0a0bad2cc29.zip |
vim-patch:8.2.0155: MinGW warnings; tests without +float #15908
Problem: Warnings from MinGW compiler. (John Marriott) Json test fails when
building without +float feature.
Solution: Init variables. Fix Json parsing. Skip a few tests that require
the +float feature.
https://github.com/vim/vim/commit/a5d5953d59730d9bf9c00a727c4aeb56f6ffc944
Omit vim9 changes.
vim9 internal implementation is N/A,
similar to the `vimscript-*` features.
N/A patches for version.c:
vim-patch:8.1.0737: compiler warning for uninitialized variable
Problem: Compiler warning for uninitialized variable.
Solution: Add initialization. (John Marriott)
https://github.com/vim/vim/commit/e519dfd7139d504ada44031a986482ac4fb1229a
vim-patch:8.1.1385: signed/unsigned compiler warning
Problem: Signed/unsigned compiler warning.
Solution: Use STRLEN() instead of strlen().
https://github.com/vim/vim/commit/71de720c2c117137185a6fc233b35aab37f0d4bc
vim-patch:8.2.0165: Coverity warning for using NULL pointer
Problem: Coverity warning for using NULL pointer.
Solution: Add missing "else".
https://github.com/vim/vim/commit/5b18c248d3fe4961076dbc59c960ef60c80650f0
vim-patch:8.2.0166: Coverity warning for using uninitialized variable
Problem: Coverity warning for using uninitialized variable.
Solution: Check for failure.
https://github.com/vim/vim/commit/07da94b0f07beb15c7e26b78837def5a91e102dc
vim-patch:8.2.0167: Coverity warning for ignoring return value
Problem: Coverity warning for ignoring return value.
Solution: Check the return value and jump if failed.
https://github.com/vim/vim/commit/58ceca5cae75ed839b20a89c5fa9998f02552f58
"src/testdir/test_vim9*.vim" files are N/A
because vim9 code is currently unsupported.
vim-patch:8.2.0168: Coverity warning for assigning NULL to an option
Problem: Coverity warning for assigning NULL to an option.
Solution: Use empty string instead of NULL.
https://github.com/vim/vim/commit/97a2af39cd3249c6cbe5a5c59bc24167632d39ad
vim-patch:8.2.0169: Coverity warning for dead code
Problem: Coverity warning for dead code.
Solution: Check if inside try-finally.
https://github.com/vim/vim/commit/8cbd6dfc0c9d84c5be8414dfdea3b28b72dfddb6
vim-patch:8.2.0170: Coverity warning for ignoring return value
Problem: Coverity warning for ignoring return value.
Solution: Check the return value and return if failed.
https://github.com/vim/vim/commit/a6d536829a2c3151f3d0faa0ecdc7b8230fb11ec
vim-patch:8.2.0172: Coverity warning for not restoring character
Problem: Coverity warning for not restoring character.
Solution: Restore the character also in case of failure.
https://github.com/vim/vim/commit/4549ece47cc8d6487d8e64ae37361fea87e3ad39
vim-patch:8.2.0254: compiler warning for checking size_t to be negative
Problem: Compiler warning for checking size_t to be negative.
Solution: Only check for zero. (Zoltan Arpadffy)
https://github.com/vim/vim/commit/ae8d2de3a9c0436a543c7d46071104af31ff6db7
vim-patch:8.2.0326: compiler warning for using uninitialized variable
Problem: Compiler warning for using uninitialized variable. (Yegappan
Lakshmanan)
Solution: Do not jump to failed but return.
https://github.com/vim/vim/commit/d5aec0ced17f8f60761128bff32e54ad2d1d57ef
vim-patch:8.2.3387: compiler warning for non-static function
Problem: Compiler warning for non-static function.
Solution: Make the function static. (Dominique Pellé, closes vim/vim#8816)
https://github.com/vim/vim/commit/de05ae71589f46c5d27642c33fe5eb21b22aaf5d
-rw-r--r-- | src/nvim/testdir/test_method.vim | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_method.vim b/src/nvim/testdir/test_method.vim index d34448e09e..cdf688b857 100644 --- a/src/nvim/testdir/test_method.vim +++ b/src/nvim/testdir/test_method.vim @@ -1,5 +1,7 @@ " Tests for ->method() +source check.vim + func Test_list_method() let l = [1, 2, 3] call assert_equal([1, 2, 3, 4], [1, 2, 3]->add(4)) @@ -118,6 +120,7 @@ func Test_method_funcref() endfunc func Test_method_float() + CheckFeature float eval 1.234->string()->assert_equal('1.234') eval -1.234->string()->assert_equal('-1.234') endfunc |