view src/testdir/test_autoload.vim @ 16084:ed1482db2d72 v8.1.1047

patch 8.1.1047: WINCH signal is not tested commit https://github.com/vim/vim/commit/db77b84ac2b6373ae4200d47945fc6ca64337e31 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Mar 24 14:58:31 2019 +0100 patch 8.1.1047: WINCH signal is not tested Problem: WINCH signal is not tested. Solution: Add a test. (Dominique Pelle, closes https://github.com/vim/vim/issues/4158)
author Bram Moolenaar <Bram@vim.org>
date Sun, 24 Mar 2019 15:00:07 +0100
parents 41e46caf1030
children 9ffec4eb8d33
line wrap: on
line source

" Tests for autoload

set runtimepath=./sautest

func Test_autoload_dict_func()
  let g:loaded_foo_vim = 0
  let g:called_foo_bar_echo = 0
  call g:foo#bar.echo()
  call assert_equal(1, g:loaded_foo_vim)
  call assert_equal(1, g:called_foo_bar_echo)
endfunc

func Test_source_autoload()
  let g:loaded_sourced_vim = 0
  source sautest/autoload/sourced.vim
  call assert_equal(1, g:loaded_sourced_vim)
endfunc