forked from aniani/vim
updated for version 7.0050
This commit is contained in:
@@ -1,7 +1,11 @@
|
||||
Tests for resetting "secure" flag after GUI has started.
|
||||
For KDE set a font, empty 'guifont' may cause a hang.
|
||||
|
||||
STARTTEST
|
||||
:set exrc secure
|
||||
:if has("gui_kde")
|
||||
: set guifont=Courier\ 10\ Pitch/8/-1/5/50/0/0/0/0/0
|
||||
:endif
|
||||
:gui -f
|
||||
:.,$w! test.out
|
||||
:qa!
|
||||
|
||||
@@ -149,15 +149,20 @@ STARTTEST
|
||||
:endfunc
|
||||
:$put =d.func(string(remove(d, 'func')))
|
||||
:"
|
||||
:" Nasty: deepcopy() dict that refers to itself (fails)
|
||||
:" Nasty: deepcopy() dict that refers to itself (fails when noref used)
|
||||
:let d = {1:1, 2:2}
|
||||
:let l = [4, d, 6]
|
||||
:let d[3] = l
|
||||
:let dc = deepcopy(d)
|
||||
:try
|
||||
: let x = deepcopy(d)
|
||||
: let dc = deepcopy(d, 1)
|
||||
:catch
|
||||
: $put =v:exception[:14]
|
||||
:endtry
|
||||
:let l2 = [0, l, l, 3]
|
||||
:let l[1] = l2
|
||||
:let l3 = deepcopy(l2)
|
||||
:$put ='same list: ' . (l3[1] is l3[2])
|
||||
:"
|
||||
:" Locked variables
|
||||
:for depth in range(5)
|
||||
@@ -253,6 +258,14 @@ STARTTEST
|
||||
: $put ='caught ' . v:exception
|
||||
:endtry
|
||||
:"
|
||||
:" reverse() and sort()
|
||||
:let l = ['-0', 'A11', 2, 'xaaa', 4, 'foo', 'foo6', [0, 1, 2], 'x8']
|
||||
:$put =string(reverse(l))
|
||||
:$put =string(reverse(reverse(l)))
|
||||
:$put =string(sort(l))
|
||||
:$put =string(reverse(sort(l)))
|
||||
:$put =string(sort(reverse(sort(l))))
|
||||
:"
|
||||
:endfun
|
||||
:call Test(1, 2, [3, 4], {5: 6}) " This may take a while
|
||||
:"
|
||||
|
||||
@@ -30,6 +30,7 @@ Vim(call):E725:
|
||||
g:dict.func-4
|
||||
a:function('3')
|
||||
Vim(let):E698:
|
||||
same list: 1
|
||||
depth is 0
|
||||
0000-000
|
||||
ppppppp
|
||||
@@ -70,3 +71,8 @@ caught a:000[0]
|
||||
caught a:000[2]
|
||||
caught a:000[3]
|
||||
[1, 2, [3, 9, 5, 6], {'a': 12, '5': 8}]
|
||||
['x8', [0, 1, 2], 'foo6', 'foo', 4, 'xaaa', 2, 'A11', '-0']
|
||||
['x8', [0, 1, 2], 'foo6', 'foo', 4, 'xaaa', 2, 'A11', '-0']
|
||||
['-0', 'A11', 'foo', 'foo6', 'x8', 'xaaa', 2, 4, [0, 1, 2]]
|
||||
[[0, 1, 2], 4, 2, 'xaaa', 'x8', 'foo6', 'foo', 'A11', '-0']
|
||||
['-0', 'A11', 'foo', 'foo6', 'x8', 'xaaa', 2, 4, [0, 1, 2]]
|
||||
|
||||
Reference in New Issue
Block a user