diff options
-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) |