Mercurial > vim
view src/testdir/test_behave.vim @ 33856:32bc4c71f8a6 v9.0.2138
patch 9.0.2138: Overflow logic requires long long
Commit: https://github.com/vim/vim/commit/fda700cb04612fe2f9301a9ba820309175decabf
Author: Ernie Rael <errael@raelity.com>
Date: Thu Nov 30 18:20:00 2023 +0100
patch 9.0.2138: Overflow logic requires long long
Problem: Overflow logic requires long long
Solution: Define vimlong_T data type to make life easier
for porters
closes: #13598
Signed-off-by: Ernie Rael <errael@raelity.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 30 Nov 2023 18:30:03 +0100 |
parents | 08940efa6b4e |
children |
line wrap: on
line source
" Test the :behave command func Test_behave() behave mswin call assert_equal('mouse,key', &selectmode) call assert_equal('popup', &mousemodel) call assert_equal('startsel,stopsel', &keymodel) call assert_equal('exclusive', &selection) behave xterm call assert_equal('', &selectmode) call assert_equal('extend', &mousemodel) call assert_equal('', &keymodel) call assert_equal('inclusive', &selection) set selection& set mousemodel& set keymodel& set selection& endfunc func Test_behave_completion() call feedkeys(":behave \<C-A>\<C-B>\"\<CR>", 'tx') call assert_equal('"behave mswin xterm', @:) endfunc func Test_behave_error() call assert_fails('behave x', 'E475:') endfunc " vim: shiftwidth=2 sts=2 expandtab