From b33c92439bb329e530ece0b125b16482f7ed1ab1 Mon Sep 17 00:00:00 2001 From: Rainer Borene Date: Wed, 22 Oct 2014 20:25:40 -0200 Subject: [PATCH] legacy tests: migrate test18 --- src/nvim/testdir/test18.in | 16 ----------- src/nvim/testdir/test18.ok | 4 --- .../legacy/018_unset_smart_indenting_spec.lua | 28 +++++++++++++++++++ 3 files changed, 28 insertions(+), 20 deletions(-) delete mode 100644 src/nvim/testdir/test18.in delete mode 100644 src/nvim/testdir/test18.ok create mode 100644 test/functional/legacy/018_unset_smart_indenting_spec.lua 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') + + expect([[ + start text + #test + test text + test text]]) + end) +end)