aboutsummaryrefslogtreecommitdiff
path: root/test/functional
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-07-15 11:14:22 +0800
committerGitHub <noreply@github.com>2022-07-15 11:14:22 +0800
commit9777907467b29e890556db287b6a9995c0024896 (patch)
treed57568b30353002faa5e923ca0ffb8ea434797fc /test/functional
parent73f96ce4c638179abb0bd5a9dc48a6a1d0f3a5bd (diff)
parent465b73c3a5f1debc0c88e0e2d569f8cdebc51b5b (diff)
downloadrneovim-9777907467b29e890556db287b6a9995c0024896.tar.gz
rneovim-9777907467b29e890556db287b6a9995c0024896.tar.bz2
rneovim-9777907467b29e890556db287b6a9995c0024896.zip
Merge pull request #19369 from zeertzjq/vim-8.2.0482
vim-patch:8.2.{0430,0482}: insufficient tests
Diffstat (limited to 'test/functional')
-rw-r--r--test/functional/legacy/cpoptions_spec.lua34
1 files changed, 34 insertions, 0 deletions
diff --git a/test/functional/legacy/cpoptions_spec.lua b/test/functional/legacy/cpoptions_spec.lua
new file mode 100644
index 0000000000..d2f382ec12
--- /dev/null
+++ b/test/functional/legacy/cpoptions_spec.lua
@@ -0,0 +1,34 @@
+local helpers = require('test.functional.helpers')(after_each)
+local Screen = require('test.functional.ui.screen')
+local clear = helpers.clear
+local command = helpers.command
+local feed = helpers.feed
+
+before_each(clear)
+
+describe('cpoptions', function()
+ it('$', function()
+ local screen = Screen.new(30, 6)
+ screen:attach()
+ command('set cpo+=$')
+ command([[call setline(1, 'one two three')]])
+ feed('c2w')
+ screen:expect([[
+ ^one tw$ three |
+ ~ |
+ ~ |
+ ~ |
+ ~ |
+ -- INSERT -- |
+ ]])
+ feed('vim<Esc>')
+ screen:expect([[
+ vi^m three |
+ ~ |
+ ~ |
+ ~ |
+ ~ |
+ |
+ ]])
+ end)
+end)