]> granicus.if.org Git - vim/commitdiff
patch 8.2.3661: test for put with large count fails v8.2.3661
authorBram Moolenaar <Bram@vim.org>
Wed, 24 Nov 2021 14:59:17 +0000 (14:59 +0000)
committerBram Moolenaar <Bram@vim.org>
Wed, 24 Nov 2021 14:59:17 +0000 (14:59 +0000)
Problem:    Test for put with large count fails.
Solution:   Adjust the counts in the test.

src/testdir/test_put.vim
src/version.c

index 8e9f3321b56ec23b9fd21db4c8c6acc236b38a31..de66a6d7f513bbf85d91cbad0d2a3149865cd622 100644 (file)
@@ -162,8 +162,8 @@ func Test_very_large_count_64bit()
   endif
 
   new
-  let @" = 'x'
-  call assert_fails('norm 44444444444444p', 'E1240:')
+  let @" = repeat('x', 100)
+  call assert_fails('norm 999999999p', 'E1240:')
   bwipe!
 endfunc
 
@@ -182,9 +182,9 @@ func Test_very_large_count_block_64bit()
   endif
 
   new
-  call setline(1, 'x')
-  exe "norm \<C-V>y"
-  call assert_fails('norm 44444444444444p', 'E1240:')
+  call setline(1, repeat('x', 100))
+  exe "norm \<C-V>$y"
+  call assert_fails('norm 999999999p', 'E1240:')
   bwipe!
 endfunc
 
index ffc40ef8122a9a5c635bc923e18de4271ca819ac..1a39190876e7c2e01629bfb6d0083c16f125d009 100644 (file)
@@ -757,6 +757,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    3661,
 /**/
     3660,
 /**/