mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-patch:7.4.1862 Mark as NA
This commit is contained in:
parent
537cee4883
commit
b42347da45
@ -984,6 +984,86 @@ func Test_skip()
|
||||
|
||||
endfunc
|
||||
|
||||
"-------------------------------------------------------------------------------
|
||||
" Test 93: :echo and string() {{{1
|
||||
"-------------------------------------------------------------------------------
|
||||
|
||||
func Test_echo_and_string()
|
||||
" String
|
||||
let a = 'foo bar'
|
||||
redir => result
|
||||
echo a
|
||||
echo string(a)
|
||||
redir END
|
||||
let l = split(result, "\n")
|
||||
call assert_equal(["foo bar",
|
||||
\ "'foo bar'"], l)
|
||||
|
||||
" Float
|
||||
if has('float')
|
||||
let a = -1.2e0
|
||||
redir => result
|
||||
echo a
|
||||
echo string(a)
|
||||
redir END
|
||||
let l = split(result, "\n")
|
||||
call assert_equal(["-1.2",
|
||||
\ "-1.2"], l)
|
||||
endif
|
||||
|
||||
" Funcref
|
||||
redir => result
|
||||
echo function('string')
|
||||
echo string(function('string'))
|
||||
redir END
|
||||
let l = split(result, "\n")
|
||||
call assert_equal(["string",
|
||||
\ "function('string')"], l)
|
||||
|
||||
" Empty dictionaries in a list
|
||||
let a = {}
|
||||
redir => result
|
||||
echo [a, a, a]
|
||||
echo string([a, a, a])
|
||||
redir END
|
||||
let l = split(result, "\n")
|
||||
call assert_equal(["[{}, {}, {}]",
|
||||
\ "[{}, {}, {}]"], l)
|
||||
|
||||
" Empty dictionaries in a dictionary
|
||||
let a = {}
|
||||
let b = {"a": a, "b": a}
|
||||
redir => result
|
||||
echo b
|
||||
echo string(b)
|
||||
redir END
|
||||
let l = split(result, "\n")
|
||||
call assert_equal(["{'a': {}, 'b': {}}",
|
||||
\ "{'a': {}, 'b': {}}"], l)
|
||||
|
||||
" Empty lists in a list
|
||||
let a = []
|
||||
redir => result
|
||||
echo [a, a, a]
|
||||
echo string([a, a, a])
|
||||
redir END
|
||||
let l = split(result, "\n")
|
||||
call assert_equal(["[[], [], []]",
|
||||
\ "[[], [], []]"], l)
|
||||
|
||||
" Empty lists in a dictionary
|
||||
let a = []
|
||||
let b = {"a": a, "b": a}
|
||||
redir => result
|
||||
echo b
|
||||
echo string(b)
|
||||
redir END
|
||||
let l = split(result, "\n")
|
||||
call assert_equal(["{'a': [], 'b': []}",
|
||||
\ "{'a': [], 'b': []}"], l)
|
||||
|
||||
endfunc
|
||||
|
||||
"-------------------------------------------------------------------------------
|
||||
" Modelines {{{1
|
||||
" vim: ts=8 sw=4 tw=80 fdm=marker
|
||||
|
@ -578,7 +578,7 @@ static int included_patches[] = {
|
||||
// 1865 NA
|
||||
// 1864 NA
|
||||
// 1863 NA
|
||||
// 1862,
|
||||
// 1862 NA
|
||||
// 1861,
|
||||
1860,
|
||||
// 1859 NA
|
||||
|
Loading…
Reference in New Issue
Block a user