comparison src/testdir/test_lambda.vim @ 30580:f08ed0738f7a v9.0.0625

patch 9.0.0625: too many delete() calls in tests Commit: https://github.com/vim/vim/commit/7dd5a78b88af7734bdbf236fdfafb49f27a0ca2e Author: Bram Moolenaar <Bram@vim.org> Date: Thu Sep 29 21:01:57 2022 +0100 patch 9.0.0625: too many delete() calls in tests Problem: Too many delete() calls in tests. Solution: Use deferred delete where possible.
author Bram Moolenaar <Bram@vim.org>
date Thu, 29 Sep 2022 22:15:04 +0200
parents 58fb880f3607
children cbfbf0e17cd0
comparison
equal deleted inserted replaced
30579:e298ce7862f7 30580:f08ed0738f7a
352 let l =<< trim END 352 let l =<< trim END
353 func F1() closure 353 func F1() closure
354 return 1 354 return 1
355 endfunc 355 endfunc
356 END 356 END
357 call writefile(l, 'Xscript') 357 call writefile(l, 'Xscript', 'D')
358 let caught_932 = 0 358 let caught_932 = 0
359 try 359 try
360 source Xscript 360 source Xscript
361 catch /E932:/ 361 catch /E932:/
362 let caught_932 = 1 362 let caught_932 = 1
363 endtry 363 endtry
364 call assert_equal(1, caught_932) 364 call assert_equal(1, caught_932)
365 call delete('Xscript')
366 endfunc 365 endfunc
367 366
368 " vim: shiftwidth=2 sts=2 expandtab 367 " vim: shiftwidth=2 sts=2 expandtab