diff options
| author | Sean Dewar <seandewar@users.noreply.github.com> | 2021-08-27 22:07:34 +0100 |
|---|---|---|
| committer | Sean Dewar <seandewar@users.noreply.github.com> | 2021-10-03 20:06:31 +0100 |
| commit | 0193b3a3917d426bb5798759c3629e9d4f3eb7a8 (patch) | |
| tree | 3721a9f4d87834c5a63e3004e64d002650a41348 /src/nvim/testdir/test_float_func.vim | |
| parent | 7ba11e06c0663ac12f110132d86cd463a7937a57 (diff) | |
| download | rneovim-0193b3a3917d426bb5798759c3629e9d4f3eb7a8.tar.gz rneovim-0193b3a3917d426bb5798759c3629e9d4f3eb7a8.tar.bz2 rneovim-0193b3a3917d426bb5798759c3629e9d4f3eb7a8.zip | |
vim-patch:8.1.1336: some eval functionality is not covered by tests
Problem: Some eval functionality is not covered by tests.
Solution: Add a few more test cases. (Masato Nishihata, closes vim/vim#4374)
https://github.com/vim/vim/commit/17aca707f92235b6f962e637e8073162d18e6de2
Test_expand() changes are required for v8.1.1921.
Test_call() and Test_cindent_func() are already ported.
Diffstat (limited to 'src/nvim/testdir/test_float_func.vim')
| -rw-r--r-- | src/nvim/testdir/test_float_func.vim | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_float_func.vim b/src/nvim/testdir/test_float_func.vim index 78675d7016..1e0c75c49d 100644 --- a/src/nvim/testdir/test_float_func.vim +++ b/src/nvim/testdir/test_float_func.vim @@ -15,6 +15,7 @@ func Test_abs() call assert_equal("str2float('inf')", string(abs(1.0/0.0))) call assert_equal("str2float('inf')", string(abs(-1.0/0.0))) call assert_equal("str2float('nan')", string(abs(0.0/0.0))) + call assert_equal('12', string(abs('12abc'))) call assert_equal('12', string(abs('-12abc'))) call assert_fails("call abs([])", 'E745:') call assert_fails("call abs({})", 'E728:') |