From c690f1019477e4c9a63e22e7c68bf1f65cc69fc7 Mon Sep 17 00:00:00 2001 From: Sean Dewar Date: Sat, 11 Sep 2021 21:40:10 +0100 Subject: vim-patch:8.2.1524: no longer get an error for string concatenation with float Problem: No longer get an error for string concatenation with float. (Tsuyoshi Cho) Solution: Only convert float for Vim9 script. (closes vim/vim#6787) https://github.com/vim/vim/commit/2e0866128b6266829a7f38733d5188bc4ec68745 Vim9script is N/A. Required for v8.2.2949. Co-authored-by: Bram Moolenaar --- test/old/testdir/test_eval_stuff.vim | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test/old/testdir/test_eval_stuff.vim') diff --git a/test/old/testdir/test_eval_stuff.vim b/test/old/testdir/test_eval_stuff.vim index 20eb873326..ed45eef36c 100644 --- a/test/old/testdir/test_eval_stuff.vim +++ b/test/old/testdir/test_eval_stuff.vim @@ -230,6 +230,12 @@ func Test_string_concatenation() let a = 'a' let a..=b call assert_equal('ab', a) + + if has('float') + let a = 'A' + let b = 1.234 + call assert_fails('echo a .. b', 'E806:') + endif endfunc " Test fix for issue #4507 -- cgit From 7abfb1f86e25efcbe6ec31c8d3f196a60d718123 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Mon, 12 Jun 2023 12:48:14 +0800 Subject: vim-patch:8.2.2949: tests failing because no error for float to string conversion Problem: Tests failing because there is no error for float to string conversion. Solution: Change the check for failure to check for correct result. Make some conversions strict in Vim9 script. https://github.com/vim/vim/commit/3cfa5b16b06bcc034f6de77070fa779d698ab5e9 Co-authored-by: Bram Moolenaar --- test/old/testdir/test_eval_stuff.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/old/testdir/test_eval_stuff.vim') diff --git a/test/old/testdir/test_eval_stuff.vim b/test/old/testdir/test_eval_stuff.vim index ed45eef36c..45dfd57842 100644 --- a/test/old/testdir/test_eval_stuff.vim +++ b/test/old/testdir/test_eval_stuff.vim @@ -234,7 +234,7 @@ func Test_string_concatenation() if has('float') let a = 'A' let b = 1.234 - call assert_fails('echo a .. b', 'E806:') + call assert_equal('A1.234', a .. b) endif endfunc -- cgit