aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZyX <kp-pav@yandex.ru>2017-04-09 01:53:47 +0300
committerZyX <kp-pav@yandex.ru>2017-04-09 03:24:13 +0300
commitc35bd4d07419a4167f43d1ea60159d922d8bdd11 (patch)
tree605652caa212f31f0a631d84f911b7c4917bc8d4
parent4da4d5cfd93587fd51524c6c9d6e47ef63d69dc8 (diff)
downloadrneovim-c35bd4d07419a4167f43d1ea60159d922d8bdd11.tar.gz
rneovim-c35bd4d07419a4167f43d1ea60159d922d8bdd11.tar.bz2
rneovim-c35bd4d07419a4167f43d1ea60159d922d8bdd11.zip
functests: Fix legacy/074_global_var_in_viminfo_spec
-rw-r--r--test/functional/legacy/074_global_var_in_viminfo_spec.lua22
1 files changed, 10 insertions, 12 deletions
diff --git a/test/functional/legacy/074_global_var_in_viminfo_spec.lua b/test/functional/legacy/074_global_var_in_viminfo_spec.lua
index e160f69592..e17b463e30 100644
--- a/test/functional/legacy/074_global_var_in_viminfo_spec.lua
+++ b/test/functional/legacy/074_global_var_in_viminfo_spec.lua
@@ -26,16 +26,14 @@ describe('storing global variables in ShaDa files', function()
71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88,
89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100}
- command(
- -- This will cause a few errors, do it silently.
- 'set visualbell',
- 'set shada+=!',
- "let MY_GLOBAL_DICT={'foo': 1, 'bar': 0, 'longvarible': 1000}",
- -- Store a really long list. Initially this was testing line wrapping in
- -- viminfo, but shada files has no line wrapping, no matter how long the
- -- list is.
- 'let MY_GLOBAL_LIST=range(1,100)'
- )
+ command('set visualbell')
+ command('set shada+=!')
+ command('let MY_GLOBAL_DICT={\'foo\': 1, \'bar\': 0, \'longvarible\': 1000}')
+ -- Store a really long list. Initially this was testing line wrapping in
+ -- viminfo, but shada files has no line wrapping, no matter how long the
+ -- list is.
+ command('let MY_GLOBAL_LIST=range(1, 100)')
+
eq(test_dict, eval('MY_GLOBAL_DICT'))
eq(test_list, eval('MY_GLOBAL_LIST'))
@@ -44,8 +42,8 @@ describe('storing global variables in ShaDa files', function()
-- Assert that the shada file exists.
neq(nil, lfs.attributes(tempname))
- command('unlet MY_GLOBAL_DICT',
- 'unlet MY_GLOBAL_LIST')
+ command('unlet MY_GLOBAL_DICT')
+ command('unlet MY_GLOBAL_LIST')
-- Assert that the variables where deleted.
eq(0, eval('exists("MY_GLOBAL_DICT")'))
eq(0, eval('exists("MY_GLOBAL_LIST")'))