diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-03-15 13:33:55 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-03-15 13:33:55 +0100 |
commit | 1abb502635c7f317e05a0cf3ea067101f9d684f5 (patch) | |
tree | 5795aacec573dc3d1b9f8f54834d325b782189fd /src/testdir | |
parent | 4f118be2bb987cdf313da879d2a93ae125e99202 (diff) | |
download | vim-git-1abb502635c7f317e05a0cf3ea067101f9d684f5.tar.gz |
patch 7.4.1567v7.4.1567
Problem: Crash in assert_fails().
Solution: Check for NULL. (Dominique Pelle) Add a test.
Diffstat (limited to 'src/testdir')
-rw-r--r-- | src/testdir/test_assert.vim | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/testdir/test_assert.vim b/src/testdir/test_assert.vim index df2636d7b..2ac828b28 100644 --- a/src/testdir/test_assert.vim +++ b/src/testdir/test_assert.vim @@ -62,6 +62,12 @@ func Test_compare_fail() endtry endfunc +func Test_assert_fail_fails() + call assert_fails('xxx', {}) + call assert_true(v:errors[0] =~ "Expected {} but got 'E731:") + call remove(v:errors, 0) +endfunc + func Test_user_is_happy() smile |