aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-02-18 08:55:00 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-02-18 09:48:35 +0800
commit62a1290758a3cd6af95dc47a3bbdc7dcf290d531 (patch)
treebb6260556f056982e51f6dda99bd882e650cafcc
parent330b3da51e60fbf26e25dc57b8c463ace6f2a933 (diff)
downloadrneovim-62a1290758a3cd6af95dc47a3bbdc7dcf290d531.tar.gz
rneovim-62a1290758a3cd6af95dc47a3bbdc7dcf290d531.tar.bz2
rneovim-62a1290758a3cd6af95dc47a3bbdc7dcf290d531.zip
vim-patch:8.2.3661: test for put with large count fails
Problem: Test for put with large count fails. Solution: Adjust the counts in the test. https://github.com/vim/vim/commit/8bc07e800c2af36686aadd4178cc2671f5c454d4
-rw-r--r--src/nvim/testdir/test_put.vim10
-rw-r--r--test/functional/legacy/put_spec.lua10
2 files changed, 10 insertions, 10 deletions
diff --git a/src/nvim/testdir/test_put.vim b/src/nvim/testdir/test_put.vim
index 9f2fc999a7..65232175c6 100644
--- a/src/nvim/testdir/test_put.vim
+++ b/src/nvim/testdir/test_put.vim
@@ -154,8 +154,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
@@ -176,9 +176,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
diff --git a/test/functional/legacy/put_spec.lua b/test/functional/legacy/put_spec.lua
index 0b969dee55..3ddf65490e 100644
--- a/test/functional/legacy/put_spec.lua
+++ b/test/functional/legacy/put_spec.lua
@@ -23,8 +23,8 @@ describe('put', function()
source [[
new
- let @" = 'x'
- call assert_fails('norm 44444444444444p', 'E1240:')
+ let @" = repeat('x', 100)
+ call assert_fails('norm 999999999p', 'E1240:')
bwipe!
]]
end)
@@ -36,9 +36,9 @@ describe('put', function()
source [[
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!
]]
end)