comparison src/testdir/test_expr.vim @ 30405:ea38db8639eb v9.0.0538

patch 9.0.0538: manually deleting test temp files Commit: https://github.com/vim/vim/commit/5c645a25bb8e6d766db720a44b9ceeff39d1e92b Author: Bram Moolenaar <Bram@vim.org> Date: Wed Sep 21 22:00:03 2022 +0100 patch 9.0.0538: manually deleting test temp files Problem: Manually deleting test temp files. Solution: Add the 'D' flag to writefile().
author Bram Moolenaar <Bram@vim.org>
date Wed, 21 Sep 2022 23:15:03 +0200
parents 029c59bf78f1
children 5bc99d85f773
comparison
equal deleted inserted replaced
30404:20bbd0c0761b 30405:ea38db8639eb
704 func Test_function_outside_script() 704 func Test_function_outside_script()
705 let cleanup =<< trim END 705 let cleanup =<< trim END
706 call writefile([execute('messages')], 'Xtest.out') 706 call writefile([execute('messages')], 'Xtest.out')
707 qall 707 qall
708 END 708 END
709 call writefile(cleanup, 'Xverify.vim') 709 call writefile(cleanup, 'Xverify.vim', 'D')
710 call RunVim([], [], "-c \"echo function('s:abc')\" -S Xverify.vim") 710 call RunVim([], [], "-c \"echo function('s:abc')\" -S Xverify.vim")
711 call assert_match('E81: Using <SID> not in a', readfile('Xtest.out')[0]) 711 call assert_match('E81: Using <SID> not in a', readfile('Xtest.out')[0])
712 call RunVim([], [], "-c \"echo funcref('s:abc')\" -S Xverify.vim") 712 call RunVim([], [], "-c \"echo funcref('s:abc')\" -S Xverify.vim")
713 call assert_match('E81: Using <SID> not in a', readfile('Xtest.out')[0]) 713 call assert_match('E81: Using <SID> not in a', readfile('Xtest.out')[0])
714 call delete('Xtest.out') 714 call delete('Xtest.out')
715 call delete('Xverify.vim')
716 endfunc 715 endfunc
717 716
718 func Test_setmatches() 717 func Test_setmatches()
719 let lines =<< trim END 718 let lines =<< trim END
720 hi def link 1 Comment 719 hi def link 1 Comment