diff options
| author | ZyX <kp-pav@yandex.ru> | 2017-04-10 19:12:56 +0300 | 
|---|---|---|
| committer | ZyX <kp-pav@yandex.ru> | 2017-04-10 19:12:56 +0300 | 
| commit | 22fb9d8d25f5354bb878b953ba49b439961c8476 (patch) | |
| tree | d3c21e80d09f7b1cf1a7c525643c2e20fb5a925e /test/functional/legacy/033_lisp_indent_spec.lua | |
| parent | acc52a953b99f78435c34337b8ca9b6716a057a1 (diff) | |
| parent | 9aface8c4d1edd25d4fed3e099e3c2c02b0a282a (diff) | |
| download | rneovim-22fb9d8d25f5354bb878b953ba49b439961c8476.tar.gz rneovim-22fb9d8d25f5354bb878b953ba49b439961c8476.tar.bz2 rneovim-22fb9d8d25f5354bb878b953ba49b439961c8476.zip | |
Merge branch 'master' into 1476-changes
Diffstat (limited to 'test/functional/legacy/033_lisp_indent_spec.lua')
| -rw-r--r-- | test/functional/legacy/033_lisp_indent_spec.lua | 27 | 
1 files changed, 14 insertions, 13 deletions
| diff --git a/test/functional/legacy/033_lisp_indent_spec.lua b/test/functional/legacy/033_lisp_indent_spec.lua index b4abb02ac2..2b79ee024b 100644 --- a/test/functional/legacy/033_lisp_indent_spec.lua +++ b/test/functional/legacy/033_lisp_indent_spec.lua @@ -1,10 +1,10 @@ --- vim: set foldmethod=marker foldmarker=[[,]] :  -- Test for 'lisp'  -- If the lisp feature is not enabled, this will fail!  local helpers = require('test.functional.helpers')(after_each)  local clear, feed, insert = helpers.clear, helpers.feed, helpers.insert -local execute, expect = helpers.execute, helpers.expect +local command, expect = helpers.command, helpers.expect +local wait = helpers.wait  describe('lisp indent', function()    setup(clear) @@ -13,7 +13,7 @@ describe('lisp indent', function()      insert([[        (defun html-file (base)        (format nil "~(~A~).html" base)) -       +        (defmacro page (name title &rest body)        (let ((ti (gensym)))        `(with-open-file (*standard-output* @@ -26,29 +26,30 @@ describe('lisp indent', function()        (as h2 (string-upcase ,ti)))        (brs 3)        ,@body)))) -       +        ;;; Utilities for generating links -       +        (defmacro with-link (dest &rest body)        `(progn        (format t "<a href=\"~A\">" (html-file ,dest))        ,@body        (princ "</a>")))]]) -    execute('set lisp') -    execute('/^(defun') +    command('set lisp') +    command('/^(defun')      feed('=G:/^(defun/,$yank A<cr>') +    wait()      -- Put @a and clean empty line -    execute('%d') -    execute('0put a') -    execute('$d') +    command('%d') +    command('0put a') +    command('$d')      -- Assert buffer contents.      expect([[        (defun html-file (base)          (format nil "~(~A~).html" base)) -       +        (defmacro page (name title &rest body)          (let ((ti (gensym)))            `(with-open-file (*standard-output* @@ -61,9 +62,9 @@ describe('lisp indent', function()        	       (as h2 (string-upcase ,ti)))        	 (brs 3)        	 ,@body)))) -       +        ;;; Utilities for generating links -       +        (defmacro with-link (dest &rest body)          `(progn             (format t "<a href=\"~A\">" (html-file ,dest)) | 
