diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-03-18 20:18:45 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-03-18 20:18:45 +0100 |
commit | 37175409d766ce67f2548dffa6d73451379b5737 (patch) | |
tree | 2e8e01db9672be9049ed94a1ed3192356441d628 /src/testdir/test_cursor_func.vim | |
parent | 42205551b140bee8b419b24abe210f56bb80b35e (diff) |
patch 8.0.0478: tests use assert_true(0) and assert_false(1) to report errorsv8.0.0478
Problem: Tests use assert_true(0) and assert_false(1) to report errors.
Solution: Use assert_report().
Diffstat (limited to 'src/testdir/test_cursor_func.vim')
-rw-r--r-- | src/testdir/test_cursor_func.vim | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/testdir/test_cursor_func.vim b/src/testdir/test_cursor_func.vim index 355354198d..d784e3678b 100644 --- a/src/testdir/test_cursor_func.vim +++ b/src/testdir/test_cursor_func.vim @@ -1,13 +1,7 @@ " Tests for cursor(). func Test_wrong_arguments() - try - call cursor(1. 3) - " not reached - call assert_false(1) - catch - call assert_exception('E474:') - endtry + call assert_fails('call cursor(1. 3)', 'E474:') endfunc func Test_move_cursor() |