comparison src/testdir/test_changelist.vim @ 30164:f7a2de8a4ddc v9.0.0418

patch 9.0.0418: manually deleting temp test files Commit: https://github.com/vim/vim/commit/45bbaef0382c5468d9fac511775bd99ea7bf5b84 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Sep 8 16:39:22 2022 +0100 patch 9.0.0418: manually deleting temp test files Problem: Manually deleting temp test files. Solution: Use the 'D' flag of writefile() and mkdir().
author Bram Moolenaar <Bram@vim.org>
date Thu, 08 Sep 2022 17:45:03 +0200
parents 98f5a0618a77
children
comparison
equal deleted inserted replaced
30163:ac28d70ac476 30164:f7a2de8a4ddc
62 bwipe! 62 bwipe!
63 enew 63 enew
64 call assert_equal([], 10->getchangelist()) 64 call assert_equal([], 10->getchangelist())
65 call assert_equal([[], 0], getchangelist()) 65 call assert_equal([[], 0], getchangelist())
66 66
67 call writefile(['line1', 'line2', 'line3'], 'Xclistfile1.txt') 67 call writefile(['line1', 'line2', 'line3'], 'Xclistfile1.txt', 'D')
68 call writefile(['line1', 'line2', 'line3'], 'Xclistfile2.txt') 68 call writefile(['line1', 'line2', 'line3'], 'Xclistfile2.txt', 'D')
69 69
70 edit Xclistfile1.txt 70 edit Xclistfile1.txt
71 let buf_1 = bufnr() 71 let buf_1 = bufnr()
72 exe "normal 1Goline\<C-G>u1.1" 72 exe "normal 1Goline\<C-G>u1.1"
73 exe "normal 3Goline\<C-G>u2.1" 73 exe "normal 3Goline\<C-G>u2.1"
98 \ {'lnum' : 1, 'col' : 6, 'coladd' : 0}, 98 \ {'lnum' : 1, 'col' : 6, 'coladd' : 0},
99 \ {'lnum' : 3, 'col' : 6, 'coladd' : 0}], 2], 99 \ {'lnum' : 3, 'col' : 6, 'coladd' : 0}], 2],
100 \ getchangelist(buf_2)) 100 \ getchangelist(buf_2))
101 101
102 bwipe! 102 bwipe!
103 call delete('Xclistfile1.txt')
104 call delete('Xclistfile2.txt')
105 endfunc 103 endfunc
106 104
107 " vim: shiftwidth=2 sts=2 expandtab 105 " vim: shiftwidth=2 sts=2 expandtab