comparison src/testdir/test_assert.vim @ 7852:8818755d8326 v7.4.1223

commit https://github.com/vim/vim/commit/a542c680a8b42cb766e64d4ee7374ef4dacb7832 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jan 31 16:28:04 2016 +0100 patch 7.4.1223 Problem: Crash when setting v:errors to a number. Solution: Free the typval without assuming its type. (Yasuhiro Matsumoto)
author Christian Brabandt <cb@256bit.org>
date Sun, 31 Jan 2016 16:30:04 +0100
parents eb9cc96138a3
children 03e716299680
comparison
equal deleted inserted replaced
7851:ed080aca141b 7852:8818755d8326
35 call assert_exception('E730:') 35 call assert_exception('E730:')
36 endtry 36 endtry
37 endtry 37 endtry
38 endfunc 38 endfunc
39 39
40 func Test_wrong_error_type()
41 let save_verrors = v:errors
42 let v:['errors'] = {'foo': 3}
43 call assert_equal('yes', 'no')
44 let verrors = v:errors
45 let v:errors = save_verrors
46 call assert_equal(type([]), type(verrors))
47 endfunc
48
40 func Test_user_is_happy() 49 func Test_user_is_happy()
41 smile 50 smile
42 sleep 300m 51 sleep 300m
43 endfunc 52 endfunc