Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add additional tests for evalfunc.c #5843

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/testdir/test_exists.vim
Expand Up @@ -68,7 +68,10 @@ func Test_exists()
" Existing environment variable
let $EDITOR_NAME = 'Vim Editor'
call assert_equal(1, exists('$EDITOR_NAME'))
call assert_equal(1, exists('${EDITOR_NAME}'))
if has('unix')
" ${name} environment variables are supported only on Unix-like systems
call assert_equal(1, exists('${VIM}'))
endif
" Non-existing environment variable
call assert_equal(0, exists('$NON_ENV_VAR'))

Expand Down
6 changes: 2 additions & 4 deletions src/testdir/test_functions.vim
Expand Up @@ -24,10 +24,8 @@ func Test_has()
call assert_equal(1, has('eval'))
call assert_equal(1, has('eval', 1))

if has('unix') && !has('bsd')
" The has('ttyin') call returns 0 in Travis/CI only for the S390 build.
" For now, comment this test.
"call assert_equal(1, has('ttyin'))
if has('unix')
call assert_equal(1, or(has('ttyin'), 1))
call assert_equal(0, has('ttyout'))
call assert_equal(1, has('multi_byte_encoding'))
endif
Expand Down