comparison src/testdir/test_functions.vim @ 27412:557a50b0d10b v8.2.4234

patch 8.2.4234: test_garbagecollect_now() does not check v:testing Commit: https://github.com/vim/vim/commit/b3d83980d2ac0f7a25314270416f17af874ca269 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jan 27 19:59:47 2022 +0000 patch 8.2.4234: test_garbagecollect_now() does not check v:testing Problem: test_garbagecollect_now() does not check v:testing as documented. Solution: Give an error if v:testing is not set.
author Bram Moolenaar <Bram@vim.org>
date Thu, 27 Jan 2022 21:00:04 +0100
parents 7ec64e4539af
children 4c16acb2525f
comparison
equal deleted inserted replaced
27411:2689052e59cd 27412:557a50b0d10b
2661 call assert_fails('let x=range([])', 'E745:') 2661 call assert_fails('let x=range([])', 'E745:')
2662 call assert_fails('let x=range(1, [])', 'E745:') 2662 call assert_fails('let x=range(1, [])', 'E745:')
2663 call assert_fails('let x=range(1, 4, [])', 'E745:') 2663 call assert_fails('let x=range(1, 4, [])', 'E745:')
2664 endfunc 2664 endfunc
2665 2665
2666 func Test_garbagecollect_now_fails()
2667 let v:testing = 0
2668 call assert_fails('call test_garbagecollect_now()', 'E1142:')
2669 let v:testing = 1
2670 endfunc
2671
2666 func Test_echoraw() 2672 func Test_echoraw()
2667 CheckScreendump 2673 CheckScreendump
2668 2674
2669 " Normally used for escape codes, but let's test with a CR. 2675 " Normally used for escape codes, but let's test with a CR.
2670 let lines =<< trim END 2676 let lines =<< trim END