aboutsummaryrefslogtreecommitdiff
path: root/test/old
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-07-14 06:37:15 +0800
committerGitHub <noreply@github.com>2024-07-14 06:37:15 +0800
commitc2ed8ce102e733e4c3edecb35c5b8e752456bb39 (patch)
treeefdc687bd81611dfbd165f18e86a1f8f9a8baee8 /test/old
parenteab535e10edd69a2224a10f789bf3c2be6f0ba36 (diff)
parent88c698083aa0819fb19c3129b81c6f291a5bf568 (diff)
downloadrneovim-c2ed8ce102e733e4c3edecb35c5b8e752456bb39.tar.gz
rneovim-c2ed8ce102e733e4c3edecb35c5b8e752456bb39.tar.bz2
rneovim-c2ed8ce102e733e4c3edecb35c5b8e752456bb39.zip
Merge pull request #29691 from zeertzjq/vim-9.1.0577
vim-patch:8.2.{3716,4065},9.1.{0577,0579}
Diffstat (limited to 'test/old')
-rw-r--r--test/old/testdir/test_excmd.vim13
-rw-r--r--test/old/testdir/test_put.vim12
2 files changed, 9 insertions, 16 deletions
diff --git a/test/old/testdir/test_excmd.vim b/test/old/testdir/test_excmd.vim
index a9d7c27fe5..50e5080f60 100644
--- a/test/old/testdir/test_excmd.vim
+++ b/test/old/testdir/test_excmd.vim
@@ -718,15 +718,20 @@ func Test_not_break_expression_register()
endfunc
func Test_address_line_overflow()
- throw 'Skipped: v:sizeoflong is N/A' " use legacy/excmd_spec.lua instead
-
- if v:sizeoflong < 8
+ if !has('nvim') && v:sizeoflong < 8
throw 'Skipped: only works with 64 bit long ints'
endif
new
- call setline(1, 'text')
+ call setline(1, range(100))
call assert_fails('|.44444444444444444444444', 'E1247:')
call assert_fails('|.9223372036854775806', 'E1247:')
+ call assert_fails('.44444444444444444444444d', 'E1247:')
+ call assert_equal(range(100)->map('string(v:val)'), getline(1, '$'))
+
+ $
+ yank 77777777777777777777
+ call assert_equal("99\n", @")
+
bwipe!
endfunc
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"