diff options
author | James McCoy <jamessan@jamessan.com> | 2018-02-01 14:30:31 -0500 |
---|---|---|
committer | James McCoy <jamessan@jamessan.com> | 2018-02-02 07:28:56 -0500 |
commit | e243dbdc328b53926009153bd7fca32ebfc1abb2 (patch) | |
tree | 4f5750a3cc3d749551ea29438f5ad008ca9a046f /test/functional/plugin/man_spec.lua | |
parent | 5da6f0e903f2eb76e72bbb3c098d4908d1f3b1ad (diff) | |
download | rneovim-e243dbdc328b53926009153bd7fca32ebfc1abb2.tar.gz rneovim-e243dbdc328b53926009153bd7fca32ebfc1abb2.tar.bz2 rneovim-e243dbdc328b53926009153bd7fca32ebfc1abb2.zip |
test: man_spec: Fix use of nested [[ quoting
Lua (not LuaJIT) complains about the "^[[" strings inside the expect,
since it sees them as nested quotes. Change the quoting to [=[ ]=] to
avoid the issue.
Diffstat (limited to 'test/functional/plugin/man_spec.lua')
-rw-r--r-- | test/functional/plugin/man_spec.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/plugin/man_spec.lua b/test/functional/plugin/man_spec.lua index dc189b8f8e..e5da7932a5 100644 --- a/test/functional/plugin/man_spec.lua +++ b/test/functional/plugin/man_spec.lua @@ -66,13 +66,13 @@ describe(':Man', function() ithis <C-v><ESC>[1mis <C-v><ESC>[3ma <C-v><ESC>[4mtest<C-v><ESC>[0m <C-v><ESC>[4mwith<C-v><ESC>[24m <C-v><ESC>[4mescaped<C-v><ESC>[24m <C-v><ESC>[4mtext<C-v><ESC>[24m<ESC>]]) - screen:expect([[ + screen:expect([=[ this ^[[1mis ^[[3ma ^[[4mtest^[[0m | ^[[4mwith^[[24m ^[[4mescaped^[[24m ^[[4mtext^[[24^m | ~ | ~ | | - ]]) + ]=]) eval('man#init_pager()') |