Mercurial > vim
comparison src/testdir/test_viml.vim @ 7761:db5864658024 v7.4.1178
commit https://github.com/vim/vim/commit/767d8c1a1ae762ecf47297c168b8c23caf05d30a
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Jan 25 20:22:54 2016 +0100
patch 7.4.1178
Problem: empty() doesn't work for the new special variables.
Solution: Make empty() work. (Damien)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Mon, 25 Jan 2016 20:30:05 +0100 |
parents | d6e62c739839 |
children | 26bb1a6abe25 |
comparison
equal
deleted
inserted
replaced
7760:999cdc9f6010 | 7761:db5864658024 |
---|---|
985 | 985 |
986 call assert_equal(v:false, eval(string(v:false))) | 986 call assert_equal(v:false, eval(string(v:false))) |
987 call assert_equal(v:true, eval(string(v:true))) | 987 call assert_equal(v:true, eval(string(v:true))) |
988 call assert_equal(v:none, eval(string(v:none))) | 988 call assert_equal(v:none, eval(string(v:none))) |
989 call assert_equal(v:null, eval(string(v:null))) | 989 call assert_equal(v:null, eval(string(v:null))) |
990 | |
991 call assert_true(empty(v:false)) | |
992 call assert_false(empty(v:true)) | |
993 call assert_true(empty(v:null)) | |
994 call assert_true(empty(v:none)) | |
990 endfunc | 995 endfunc |
991 | 996 |
992 "------------------------------------------------------------------------------- | 997 "------------------------------------------------------------------------------- |
993 " Modelines {{{1 | 998 " Modelines {{{1 |
994 " vim: ts=8 sw=4 tw=80 fdm=marker | 999 " vim: ts=8 sw=4 tw=80 fdm=marker |