aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-07-14 05:54:31 +0800
committerzeertzjq <zeertzjq@outlook.com>2024-07-14 06:12:41 +0800
commitc31f64dd4d1aa0b89ed76c4e808d664b4f349f50 (patch)
tree29b7aebd03bfe1f332b3ccf0c0df3e4496e5d5e5
parenteab535e10edd69a2224a10f789bf3c2be6f0ba36 (diff)
downloadrneovim-c31f64dd4d1aa0b89ed76c4e808d664b4f349f50.tar.gz
rneovim-c31f64dd4d1aa0b89ed76c4e808d664b4f349f50.tar.bz2
rneovim-c31f64dd4d1aa0b89ed76c4e808d664b4f349f50.zip
vim-patch:9.1.0577: Unnecessary checks for v:sizeoflong in test_put.vim
Problem: Unnecessary checks for v:sizeoflong in test_put.vim. They are no longer necessary as patch 8.2.3661 has changed the count to be within 32-bit integer limit. Solution: Remove the checks (zeertzjq). closes: vim/vim#15239 https://github.com/vim/vim/commit/69a28f6c0861523b1a9c565b3c882f439ae73ef4
-rw-r--r--test/functional/legacy/put_spec.lua41
-rw-r--r--test/old/testdir/test_put.vim12
2 files changed, 0 insertions, 53 deletions
diff --git a/test/functional/legacy/put_spec.lua b/test/functional/legacy/put_spec.lua
index 587424da10..8b9b495679 100644
--- a/test/functional/legacy/put_spec.lua
+++ b/test/functional/legacy/put_spec.lua
@@ -1,52 +1,11 @@
-local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local Screen = require('test.functional.ui.screen')
local clear = n.clear
-local exec_lua = n.exec_lua
-local api = n.api
local source = n.source
-local eq = t.eq
-
-local function sizeoflong()
- if not exec_lua('return pcall(require, "ffi")') then
- pending('missing LuaJIT FFI')
- end
- return exec_lua('return require("ffi").sizeof(require("ffi").typeof("long"))')
-end
describe('put', function()
before_each(clear)
- after_each(function()
- eq({}, api.nvim_get_vvar('errors'))
- end)
-
- it('very large count 64-bit', function()
- if sizeoflong() < 8 then
- pending('Skipped: only works with 64 bit long ints')
- end
-
- source [[
- new
- let @" = repeat('x', 100)
- call assert_fails('norm 999999999p', 'E1240:')
- bwipe!
- ]]
- end)
-
- it('very large count (visual block) 64-bit', function()
- if sizeoflong() < 8 then
- pending('Skipped: only works with 64 bit long ints')
- end
-
- source [[
- new
- call setline(1, repeat('x', 100))
- exe "norm \<C-V>$y"
- call assert_fails('norm 999999999p', 'E1240:')
- bwipe!
- ]]
- end)
-- oldtest: Test_put_other_window()
it('above topline in buffer in two splits', function()
diff --git a/test/old/testdir/test_put.vim b/test/old/testdir/test_put.vim
index 73b58dbe33..6b332faaeb 100644
--- a/test/old/testdir/test_put.vim
+++ b/test/old/testdir/test_put.vim
@@ -168,12 +168,6 @@ func Test_very_large_count()
endfunc
func Test_very_large_count_64bit()
- throw 'Skipped: v:sizeoflong is N/A' " use legacy/put_spec.lua instead
-
- if v:sizeoflong < 8
- throw 'Skipped: only works with 64 bit long ints'
- endif
-
new
let @" = repeat('x', 100)
call assert_fails('norm 999999999p', 'E1240:')
@@ -190,12 +184,6 @@ func Test_very_large_count_block()
endfunc
func Test_very_large_count_block_64bit()
- throw 'Skipped: v:sizeoflong is N/A' " use legacy/put_spec.lua instead
-
- if v:sizeoflong < 8
- throw 'Skipped: only works with 64 bit long ints'
- endif
-
new
call setline(1, repeat('x', 100))
exe "norm \<C-V>$y"