aboutsummaryrefslogtreecommitdiff
path: root/test/functional
diff options
context:
space:
mode:
authorRainer Borene <rainerborene@gmail.com>2014-10-22 22:24:29 -0200
committerThiago de Arruda <tpadilha84@gmail.com>2014-11-04 12:57:33 -0300
commit4ca353d3bdfc41250835dcaba727554a4d21243d (patch)
treeeb1ff15d002ca3c17a3c7b6c5f228ce8032f137d /test/functional
parent79cd4a98ecc100694e2e35df7ec05971bd720830 (diff)
downloadrneovim-4ca353d3bdfc41250835dcaba727554a4d21243d.tar.gz
rneovim-4ca353d3bdfc41250835dcaba727554a4d21243d.tar.bz2
rneovim-4ca353d3bdfc41250835dcaba727554a4d21243d.zip
legacy tests: migrate test81
Diffstat (limited to 'test/functional')
-rw-r--r--test/functional/legacy/081_coptions_movement_spec.lua39
1 files changed, 39 insertions, 0 deletions
diff --git a/test/functional/legacy/081_coptions_movement_spec.lua b/test/functional/legacy/081_coptions_movement_spec.lua
new file mode 100644
index 0000000000..f27667b976
--- /dev/null
+++ b/test/functional/legacy/081_coptions_movement_spec.lua
@@ -0,0 +1,39 @@
+-- Test for t movement command and 'cpo-;' setting
+
+local helpers = require('test.functional.helpers')
+local clear, feed, insert = helpers.clear, helpers.feed, helpers.insert
+local execute, expect = helpers.execute, helpers.expect
+
+describe('coptions', function()
+ setup(clear)
+
+ it('is working', function()
+ insert([[
+ aaa two three four
+ zzz
+ yyy
+ bbb yee yoo four
+ ccc two three four
+ ddd yee yoo four]])
+
+ execute('set cpo-=;')
+
+ feed('gg0tt;D')
+ feed('j0fz;D')
+ feed('j$Fy;D')
+ feed('j$Ty;D')
+
+ execute('set cpo+=;')
+
+ feed('j0tt;;D')
+ feed('j$Ty;;D')
+
+ expect([[
+ aaa two
+ z
+ y
+ bbb y
+ ccc
+ ddd yee y]])
+ end)
+end)