0
0
mirror of https://github.com/vim/vim.git synced 2025-11-07 10:17:28 -05:00

updated for version 7.3.791

Problem:    MzScheme interface doesn't work propely.
Solution:   Make it work better. (Sergey Khorev)
This commit is contained in:
Bram Moolenaar
2013-01-30 14:55:42 +01:00
parent a3e6bc93d1
commit 7567646f13
13 changed files with 490 additions and 179 deletions

View File

@@ -38,12 +38,23 @@ STARTTEST
:" circular list (at the same time test lists containing lists)
:mz (set-car! (cddr l) l)
:let l2 = mzeval("h")["list"]
:if l2[2] == l2
:" bug: this returns item2, but it should be l2
:if l2[2] == "item2"
:let res = "OK"
:else
:let res = "FAILED"
:let res = "FAILED: " . l2[2]
:endif
:call setline(search("^3"), "circular test " . res)
:" funcrefs
:mz (define vim:max (vim-eval "function('max')"))
:mz (define m (vim:max '(1 100 8)))
:let m = mzeval('m')
:if m == 100
:let fref_res = "OK"
:else
:let fref_res = "FAILED: " . m
:end
:call append(line('$'), 'funcrefs '. fref_res)
:?^1?,$w! test.out
:qa!
ENDTEST

View File

@@ -3,3 +3,4 @@ scalar test OK
2 line 2
dictionary with list OK
circular test OK
funcrefs OK