comparison src/testdir/test_functions.vim @ 10891:c9d057b7a0ab v8.0.0335

patch 8.0.0335: functions test fails commit https://github.com/vim/vim/commit/507647da3151f7ffccac1b217936240daa79849c Author: Bram Moolenaar <Bram@vim.org> Date: Fri Feb 17 16:43:49 2017 +0100 patch 8.0.0335: functions test fails Problem: Functions test fails. Solution: Use the right buffer number.
author Christian Brabandt <cb@256bit.org>
date Fri, 17 Feb 2017 16:45:06 +0100
parents 5780bd3a5a7e
children 50f3e37bc210
comparison
equal deleted inserted replaced
10890:d2c0687e460b 10891:c9d057b7a0ab
451 451
452 call assert_equal('', getbufvar(9, '')) 452 call assert_equal('', getbufvar(9, ''))
453 call assert_equal(def_num, getbufvar(9, '', def_num)) 453 call assert_equal(def_num, getbufvar(9, '', def_num))
454 unlet def_num 454 unlet def_num
455 455
456 call assert_equal(0, getbufvar(1, '&autoindent')) 456 call assert_equal(0, getbufvar(bnr, '&autoindent'))
457 call assert_equal(0, getbufvar(1, '&autoindent', 1)) 457 call assert_equal(0, getbufvar(bnr, '&autoindent', 1))
458 458
459 " Open new window with forced option values 459 " Open new window with forced option values
460 set fileformats=unix,dos 460 set fileformats=unix,dos
461 new ++ff=dos ++bin ++enc=iso-8859-2 461 new ++ff=dos ++bin ++enc=iso-8859-2
462 call assert_equal('dos', getbufvar(bufnr('%'), '&fileformat')) 462 call assert_equal('dos', getbufvar(bufnr('%'), '&fileformat'))