comparison src/testdir/test_file_size.vim @ 12644:1fad9675d8fd v8.0.1200

patch 8.0.1200: tests switch the bell off twice commit https://github.com/vim/vim/commit/67418d97b457d2e27fe342472d3c9fd342ffc47f Author: Bram Moolenaar <Bram@vim.org> Date: Sun Oct 15 22:07:39 2017 +0200 patch 8.0.1200: tests switch the bell off twice Problem: Tests switch the bell off twice. Solution: Don't set 'belloff' in individual tests. (Christian Brabandt)
author Christian Brabandt <cb@256bit.org>
date Sun, 15 Oct 2017 22:15:04 +0200
parents 44aa2997239d
children 08940efa6b4e
comparison
equal deleted inserted replaced
12643:f88dfd7fd3bc 12644:1fad9675d8fd
11 if !executable('cksum') 11 if !executable('cksum')
12 return 12 return
13 endif 13 endif
14 14
15 new 15 new
16 set belloff=all fileformat=unix undolevels=-1 16 set fileformat=unix undolevels=-1
17 for i in range(1, 2000000, 100) 17 for i in range(1, 2000000, 100)
18 call append(i, range(i, i + 99)) 18 call append(i, range(i, i + 99))
19 endfor 19 endfor
20 20
21 1delete 21 1delete
24 let res = substitute(res, "\r", "", "") 24 let res = substitute(res, "\r", "", "")
25 call assert_equal('3678979763 14888896 Xtest', res) 25 call assert_equal('3678979763 14888896 Xtest', res)
26 26
27 enew! 27 enew!
28 call delete('Xtest') 28 call delete('Xtest')
29 set belloff& fileformat& undolevels& 29 set fileformat& undolevels&
30 endfunc 30 endfunc
31 31
32 " Test for writing and reading a file of over 100 Kbyte 32 " Test for writing and reading a file of over 100 Kbyte
33 func Test_File_Read_Write() 33 func Test_File_Read_Write()
34 enew! 34 enew!