comparison src/testdir/test_viminfo.vim @ 15466:435fcefd2c8e v8.1.0741

patch 8.1.0741: viminfo with Blob is not tested commit https://github.com/vim/vim/commit/8c8b8bb56c724cc1bfc3d8520eec33f2d399697c Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jan 13 17:48:04 2019 +0100 patch 8.1.0741: viminfo with Blob is not tested Problem: Viminfo with Blob is not tested. Solution: Extend the viminfo test. Fix reading a blob. Fixed storing a special variable value.
author Bram Moolenaar <Bram@vim.org>
date Sun, 13 Jan 2019 18:00:05 +0100
parents 1c4ebbae41d2
children 2dcaa860e3fc
comparison
equal deleted inserted replaced
15465:0f076f6c5356 15466:435fcefd2c8e
37 let test_dict = {'foo': 1, 'bar': 0, 'longvarible': 1000} 37 let test_dict = {'foo': 1, 'bar': 0, 'longvarible': 1000}
38 let g:MY_GLOBAL_DICT = test_dict 38 let g:MY_GLOBAL_DICT = test_dict
39 " store a really long list, so line wrapping will occur in viminfo file 39 " store a really long list, so line wrapping will occur in viminfo file
40 let test_list = range(1,100) 40 let test_list = range(1,100)
41 let g:MY_GLOBAL_LIST = test_list 41 let g:MY_GLOBAL_LIST = test_list
42 let test_blob = 0z00112233445566778899aabbccddeeff
43 let g:MY_GLOBAL_BLOB = test_blob
44 let test_false = v:false
45 let g:MY_GLOBAL_FALSE = test_false
46 let test_true = v:true
47 let g:MY_GLOBAL_TRUE = test_true
48 let test_null = v:null
49 let g:MY_GLOBAL_NULL = test_null
50 let test_none = v:none
51 let g:MY_GLOBAL_NONE = test_none
52
42 set viminfo='100,<50,s10,h,!,nviminfo 53 set viminfo='100,<50,s10,h,!,nviminfo
43 wv! Xviminfo 54 wv! Xviminfo
55
44 unlet g:MY_GLOBAL_DICT 56 unlet g:MY_GLOBAL_DICT
45 unlet g:MY_GLOBAL_LIST 57 unlet g:MY_GLOBAL_LIST
58 unlet g:MY_GLOBAL_BLOB
59 unlet g:MY_GLOBAL_FALSE
60 unlet g:MY_GLOBAL_TRUE
61 unlet g:MY_GLOBAL_NULL
62 unlet g:MY_GLOBAL_NONE
46 63
47 rv! Xviminfo 64 rv! Xviminfo
48 call assert_equal(test_dict, g:MY_GLOBAL_DICT) 65 call assert_equal(test_dict, g:MY_GLOBAL_DICT)
49 call assert_equal(test_list, g:MY_GLOBAL_LIST) 66 call assert_equal(test_list, g:MY_GLOBAL_LIST)
67 call assert_equal(test_blob, g:MY_GLOBAL_BLOB)
68 call assert_equal(test_false, g:MY_GLOBAL_FALSE)
69 call assert_equal(test_true, g:MY_GLOBAL_TRUE)
70 call assert_equal(test_null, g:MY_GLOBAL_NULL)
71 call assert_equal(test_none, g:MY_GLOBAL_NONE)
50 72
51 call delete('Xviminfo') 73 call delete('Xviminfo')
52 set viminfo-=! 74 set viminfo-=!
53 endfunc 75 endfunc
54 76