Home
last modified time | relevance | path

Searched refs:readfile (Results 1 – 25 of 100) sorted by relevance

1234

/vim-8.2.3635/src/testdir/
H A Dtest_writefile.vim13 let l = readfile(f)
59 call assert_equal(contents, readfile('Xfile'))
66 call assert_equal(contents, readfile('Xfile'))
178 call assert_equal(['aaa'], readfile('Xa'))
185 call assert_equal(['bbb'], readfile('Xb'))
466 call assert_equal(['xxx'], readfile('Xfile'))
467 call assert_equal([], readfile('Xfile.orig'))
535 call assert_equal(expected, readfile('Xtest'))
677 \ readfile('Xtest3', 'b'))
692 \ readfile('Xtest3', 'b'))
[all …]
H A Dtest_wnext.vim8 call assert_equal(['1'], readfile('X1'))
13 call assert_equal(['2'], readfile('X2'))
30 call assert_equal(['1'], readfile('X4'))
33 call assert_equal(['1'], readfile('X4'))
35 call assert_equal(['2'], readfile('X4'))
57 call assert_equal(['2'], readfile('X2'))
76 call assert_equal(['3'], readfile('X3'))
83 call assert_equal(['3'], readfile('X4'))
86 call assert_equal(['3'], readfile('X4'))
88 call assert_equal(['2'], readfile('X4'))
H A Dtest_startup.vim58 let lines = readfile('Xtestout')
116 let lines = readfile('Xtestout')
144 let lines = readfile('Xtestout')
149 let lines = readfile('Xtestout')
243 let lines = readfile('Xtestout')
252 let lines = readfile('Xtestout')
319 let lines = readfile('Xtestout')
331 let lines = readfile('Xtestout')
341 let lines = readfile('Xtestout')
381 let lines = readfile('Xtestout')
[all …]
H A Dtest_rename.vim11 call assert_equal(['foo'], readfile('Xrename2'))
19 call assert_equal(['foo'], readfile('Xrename2'))
32 call assert_equal(['foo'], readfile('XRENAME'))
44 call assert_equal(['foo'], readfile('Xrename'))
47 call assert_equal(['foo'], readfile('Xrename'))
59 call assert_equal(['foo'], readfile('Xrenamedir2/Xrenamefile'))
71 call assert_equal(['foo'], readfile('Xrenamedir/Xrenamefile'))
89 call assert_equal(['foo'], readfile('Xrenamedir/Xrenamefile'))
91 call assert_equal(['foo'], readfile('Xrenamefile'))
111 call assert_equal(['foo'], readfile('Xrenamefile'))
H A Dtest_delete.vim9 call assert_equal(['a', 'b'], readfile('Xfile'))
11 call assert_fails('call readfile("Xfile")', 'E484:')
34 call assert_equal(['a', 'b'], readfile('Xdir1/Xfile'))
36 call assert_equal(['a', 'b'], readfile('Xdir1/subdir/Xfile'))
84 call assert_equal(['a', 'b'], readfile('Xdir3/Xfile'))
86 call assert_equal(['a', 'b'], readfile('Xdir3/subdir/Xfile'))
89 call assert_equal(['a', 'b'], readfile('Xdir4/Xfile'))
96 call assert_equal(['a', 'b'], readfile('Xdir4/Xfile'))
H A Dtest_exit.vim13 call assert_equal(['QuitPre', 'ExitPre'], readfile('Xtestout'))
26 call assert_equal(['QuitPre', 'ExitPre'], readfile('Xtestout'))
39 call assert_equal(['QuitPre', 'ExitPre'], readfile('Xtestout'))
59 \ readfile('Xtestout'))
80 \ readfile('Xtestout'))
97 call assert_equal(['qp = v:null', 'ep = v:null', 'lp = 0', 'l = 0'], readfile('Xtestout'))
102 call assert_equal(['lp = 1', 'l = 1'], readfile('Xtestout'))
107 call assert_equal(['lp = 4', 'l = 4'], readfile('Xtestout'))
H A Dtest_mksession.vim138 for line in readfile('Xtest_mks.out')
153 for line in readfile('Xtest_mks.out')
244 let lines = readfile('Xtest_mks.out')
404 let lines = readfile('Xtest_mks.out')
424 let lines = readfile('Xtest_mks.out')
441 let lines = readfile('Xtest_mks.out')
459 let lines = readfile('Xtest_mks.out')
477 let lines = readfile('Xtest_mks.out')
497 let lines = readfile('Xtest_mks.out')
519 let lines = readfile('Xtest_mks.out')
[all …]
H A Dtest_xxd.vim135 call PrepareBuffer(readfile('XXDfile')[0])
155 let blob = readfile('XXDfile', 'B')
164 let blob = readfile('XXDfile', 'B')
223 …ual(['00000000: 3a 3a 41 41 3a 3a 3a 3a 42 42 ::AA::::BB'], readfile('Xxxdout'))
228 …ual(['00000000: 3a 3a 43 43 3a 3a 3a 3a 44 44 ::CC::::DD'], readfile('Xxxdout'))
233 …ual(['00000000: 3a 3a 45 45 3a 3a 3a 3a 46 46 ::EE::::FF'], readfile('Xxxdout'))
239 …ual(['00000000: 3a 3a 41 41 3a 3a 3a 3a 42 42 ::AA::::BB'], readfile('Xxxdout'))
244 …al(['00000000: 3a 3a 43 43 3a 3a 3a 3a 42 44 44 ::CC::::BDD'], readfile('Xxxdout'))
249 …l(['00000000: 3a 3a 45 45 3a 3a 3a 3a 42 44 46 46 ::EE::::BDFF'], readfile('Xxxdout'))
H A Dtest_fixeol.vim37 call assert_equal(['with eol', 'END'], readfile('XXEol'))
38 call assert_equal(['without eolEND'], readfile('XXNoEol'))
39 call assert_equal(['with eol', 'stays eol', 'END'], readfile('XXTestEol'))
41 \ readfile('XXTestNoEol'))
H A Dtest_hardcopy.vim36 let lines = readfile('Xhardcopy_printoptions')
60 let lines = readfile('Xhardcopy_printmbfont')
81 let lines = readfile('Xhardcopy_printmbcharset')
117 \ readfile('Xhardcopy_printexpr'))
149 let lines = readfile('Xhardcopy_dark_background')
H A Dtest_shell.vim56 call assert_equal(e, json_decode(readfile('Xtestout')[0]))
194 call assert_equal(['Cmd: [-c "pwd"]'], readfile('Xlog'))
198 call assert_equal(['Cmd: [-c (pwd)]'], readfile('Xlog'))
202 call assert_equal(['Cmd: [-c "(pwd)"]'], readfile('Xlog'))
207 call assert_equal(['Cmd: [-c (pwd^"^&^<^<{}^@^^)]'], readfile('Xlog'))
232 let lines = readfile('Xtestout')
H A Dtest_spellfile.vim25 let cnt=readfile('./Xspellfile.add')
46 let cnt=readfile('./Xspellfile.add')
52 let cnt=readfile('./Xspellfile.add')
57 let cnt=readfile('./Xspellfile.add')
66 let cnt=readfile('./Xspellfile.add')
79 let cnt=readfile(fname)
85 let cnt=readfile(fname)
92 let cnt=readfile(fname)
99 let cnt=readfile(fname)
104 let cnt=readfile(fname)
[all …]
H A Dtest_excmd.vim219 call assert_equal(['foo2'], readfile('Xfoo'))
220 call assert_equal(['bar2'], readfile('Xbar'))
238 call assert_equal(['foo2'], readfile('Xfoo'))
239 call assert_equal(['bar2'], readfile('Xbar'))
259 call assert_equal(['foo4'], readfile('Xfoo'))
260 call assert_equal(['bar2'], readfile('Xbar'))
353 call assert_equal(['foo'], readfile('Xconfirm_write_ro'))
364 call assert_equal(['foobar'], readfile('Xconfirm_write_ro'))
378 call assert_equal(['foo'], readfile('Xconfirm_write_ro'))
401 call assert_equal(['a', 'b', 'c', 'd'], readfile('Xwrite_partial'))
[all …]
H A Dtest_signals.vim66 let swap_content = readfile(swap_name, 'b')
71 call assert_equal(swap_content, readfile(swap_name, 'b'))
75 call WaitForAssert({-> assert_notequal(swap_content, readfile(swap_name, 'b'))})
151 let result = readfile('XautoOut')
H A Dtest_profile.vim57 let lines = readfile('Xprofile_func.log')
154 let lines = readfile('Xprofile_func.log')
281 let lines = readfile('Xprofile_func.log')
369 let lines = readfile('Xprofile_file.log')
413 let lines = readfile('Xprofile_file.log')
513 let lines = readfile('Xprofile_file.log')
548 let lines = readfile('Xprofile_file.log')
578 let lines = readfile('XprofileTypedFunc')
603 call assert_true(readfile('Xprofile_crash.log')->len() > 10)
630 let prof_lines = readfile('Xprofile_nested.log')->join('#')
H A Dtest_terminal_fail.vim15 call WaitFor('len(readfile("Xfile")) > 0')
16 call assert_match('executing job failed', readfile('Xfile')[0])
H A Dtest_plus_arg_edit.vim7 call assert_equal(["fooPIPEbar"], readfile("Xfile1"))
8 call assert_equal(["fooSLASHbar"], readfile("Xfile2"))
H A Dtest_startup_utf8.vim24 let lines = readfile('Xtestout')
54 let lines = readfile('Xtestout')
H A Dtest_bufline.vim86 call assert_equal(['Hello'], readfile('Xtest'))
160 call assert_notmatch("^E315:", readfile("Xerror")[0])
161 call assert_equal("done", readfile("Xdone")[0])
H A Dtest_eval_stuff.vim83 let lines = 'XReadfile_bin'->readfile()
85 let lines = readfile('XReadfile_bin', '', 2)
87 let lines = readfile('XReadfile_bin', 'b')
89 let lines = readfile('XReadfile_bin', 'b', 2)
98 call assert_equal(['FOO', 'FOOBAR'], readfile('XReadfile_bom'))
104 call assert_equal(['1', '2'], readfile('XReadfile_max', '', 2))
105 call assert_equal(['3', '4'], readfile('XReadfile_max', '', -2))
H A Dscreendump.vim46 let testdump = readfile(testfile)
48 let refdump = readfile(reference)
H A Dtest_fileformat.vim49 let b = readfile(a:fname, 'B')
59 let b1 = readfile(a:f1, 'B')
60 let b2 = readfile(a:f2, 'B')
323 call assert_equal(['dos', 'mac', 'unix'], readfile('Xfile'))
H A Dtest_terminal3.vim700 let pos = json_decode(readfile('Xbuf')[0])
712 call assert_equal('yellow', readfile('Xbuf')[0])
723 call assert_equal('three four', readfile('Xbuf')[0])
732 call assert_equal("vim emacs sublime nano\n", readfile('Xbuf')[0])
743 call assert_equal("ree\nyel\nsub", readfile('Xbuf')[0])
754 call assert_equal("n yellow", readfile('Xbuf')[0])
764 call assert_equal("red bright blue", readfile('Xbuf')[0][-15:])
H A Dtest_swap.vim189 let swapfile_bytes = readfile(swapfile_name, 'B')
246 let swapfile_bytes = readfile(swapfile_name, 'B')
287 let swapfile_bytes = readfile(swapfile_name, 'B')
328 let swapfile_bytes = readfile(swapfile_name, 'B')
463 let swapfile_bytes = readfile(swapfile_name, 'B')
H A Dtest_version.vim21 call assert_match('Features included', readfile('Xversion')->join())

1234