comparison src/testdir/test_expand_func.vim @ 16668:81be817c9d9a v8.1.1336

patch 8.1.1336: some eval functionality is not covered by tests commit https://github.com/vim/vim/commit/17aca707f92235b6f962e637e8073162d18e6de2 Author: Bram Moolenaar <Bram@vim.org> Date: Thu May 16 22:24:55 2019 +0200 patch 8.1.1336: some eval functionality is not covered by tests Problem: Some eval functionality is not covered by tests. Solution: Add a few more test cases. (Masato Nishihata, closes https://github.com/vim/vim/issues/4374)
author Bram Moolenaar <Bram@vim.org>
date Thu, 16 May 2019 22:30:06 +0200
parents 0a3b9ecf7cb8
children 73ddc462979d
comparison
equal deleted inserted replaced
16667:a9680e0ff089 16668:81be817c9d9a
62 " Call in command 62 " Call in command
63 command Flnum echo expand('<sflnum>') 63 command Flnum echo expand('<sflnum>')
64 call assert_equal(64, str2nr(trim(execute('Flnum')))) 64 call assert_equal(64, str2nr(trim(execute('Flnum'))))
65 delcommand Flnum 65 delcommand Flnum
66 endfunc 66 endfunc
67
68 func Test_expand()
69 new
70 call assert_equal("", expand('%:S'))
71 call assert_equal('3', expand('<slnum>'))
72 call assert_equal(['4'], expand('<slnum>', v:false, v:true))
73 " Don't add any line above this, otherwise <slnum> will change.
74 quit
75 endfunc