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.
8bc07e800c
This commit is contained in:
zeertzjq 2022-02-18 08:55:00 +08:00
parent 330b3da51e
commit 62a1290758
2 changed files with 10 additions and 10 deletions

View File

@ -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

View File

@ -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)