comparison src/testdir/test_viml.vim @ 8633:80d78e1ab787 v7.4.1606

commit https://github.com/vim/vim/commit/953cc7fb139dc2ba8590f8b03a095b63f4e1208f Author: Bram Moolenaar <Bram@vim.org> Date: Sat Mar 19 18:52:29 2016 +0100 patch 7.4.1606 Problem: Having type() handle a Funcref that is or isn't a partial differently causes problems for existing scripts. Solution: Make type() return the same value. (Thinca)
author Christian Brabandt <cb@256bit.org>
date Sat, 19 Mar 2016 19:00:06 +0100
parents f91a24e33475
children e316b83892c1
comparison
equal deleted inserted replaced
8632:efdc2951aac4 8633:80d78e1ab787
940 940
941 func Test_type() 941 func Test_type()
942 call assert_equal(0, type(0)) 942 call assert_equal(0, type(0))
943 call assert_equal(1, type("")) 943 call assert_equal(1, type(""))
944 call assert_equal(2, type(function("tr"))) 944 call assert_equal(2, type(function("tr")))
945 call assert_equal(2, type(function("tr", [8])))
945 call assert_equal(3, type([])) 946 call assert_equal(3, type([]))
946 call assert_equal(4, type({})) 947 call assert_equal(4, type({}))
947 call assert_equal(5, type(0.0)) 948 call assert_equal(5, type(0.0))
948 call assert_equal(6, type(v:false)) 949 call assert_equal(6, type(v:false))
949 call assert_equal(6, type(v:true)) 950 call assert_equal(6, type(v:true))