diff options
author | Rainer Borene <rainerborene@gmail.com> | 2014-10-22 20:25:40 -0200 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-11-04 12:57:32 -0300 |
commit | b33c92439bb329e530ece0b125b16482f7ed1ab1 (patch) | |
tree | 288ca9129dfca53b0435bf328d8104a0b85b8c3b | |
parent | 481c449c72687678f32c524f7ab63ada9968cc29 (diff) | |
download | rneovim-b33c92439bb329e530ece0b125b16482f7ed1ab1.tar.gz rneovim-b33c92439bb329e530ece0b125b16482f7ed1ab1.tar.bz2 rneovim-b33c92439bb329e530ece0b125b16482f7ed1ab1.zip |
legacy tests: migrate test18
-rw-r--r-- | src/nvim/testdir/test18.in | 16 | ||||
-rw-r--r-- | src/nvim/testdir/test18.ok | 4 | ||||
-rw-r--r-- | test/functional/legacy/018_unset_smart_indenting_spec.lua | 28 |
3 files changed, 28 insertions, 20 deletions
diff --git a/src/nvim/testdir/test18.in b/src/nvim/testdir/test18.in deleted file mode 100644 index 9bfd922344..0000000000 --- a/src/nvim/testdir/test18.in +++ /dev/null @@ -1,16 +0,0 @@ -Tests for not doing smart indenting when it isn't set. - -STARTTEST -:so small.vim -:set nocin nosi ai -/some -2cc#test -:?start?,$w! test.out -:qa! -ENDTEST - -start text - some test text - test text -test text - test text diff --git a/src/nvim/testdir/test18.ok b/src/nvim/testdir/test18.ok deleted file mode 100644 index e719713785..0000000000 --- a/src/nvim/testdir/test18.ok +++ /dev/null @@ -1,4 +0,0 @@ -start text - #test -test text - test text diff --git a/test/functional/legacy/018_unset_smart_indenting_spec.lua b/test/functional/legacy/018_unset_smart_indenting_spec.lua new file mode 100644 index 0000000000..6975cb7f26 --- /dev/null +++ b/test/functional/legacy/018_unset_smart_indenting_spec.lua @@ -0,0 +1,28 @@ +-- Tests for not doing smart indenting when it isn't set. + +local helpers = require('test.functional.helpers') +local clear, feed, insert = helpers.clear, helpers.feed, helpers.insert +local execute, expect = helpers.execute, helpers.expect + +describe('unset smart indenting', function() + setup(clear) + + it('is working', function() + insert([[ + start text + some test text + test text + test text + test text]]) + + execute('set nocin nosi ai') + execute('/some') + feed('2cc#test<Esc>') + + expect([[ + start text + #test + test text + test text]]) + end) +end) |