Mercurial > vim
view src/testdir/test_ex_equal.vim @ 31029:bf8e9ef40006 v9.0.0849
patch 9.0.0849: terminal mouse test is a bit flaky
Commit: https://github.com/vim/vim/commit/157241e8798fe1c14f3787ee341ffee2c403714a
Author: James McCoy <jamessan@jamessan.com>
Date: Wed Nov 9 23:29:14 2022 +0000
patch 9.0.0849: terminal mouse test is a bit flaky
Problem: Terminal mouse test is a bit flaky.
Solution: Add WaitFor() calls. (James McCoy closes https://github.com/vim/vim/issues/11519) Tune wait times
to reduce flakiness.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 10 Nov 2022 00:30:04 +0100 |
parents | 08940efa6b4e |
children |
line wrap: on
line source
" Test Ex := command. func Test_ex_equal() new call setline(1, ["foo\tbar", "bar\tfoo"]) let a = execute('=') call assert_equal("\n2", a) let a = execute('=#') call assert_equal("\n2\n 1 foo bar", a) let a = execute('=l') call assert_equal("\n2\nfoo^Ibar$", a) let a = execute('=p') call assert_equal("\n2\nfoo bar", a) let a = execute('=l#') call assert_equal("\n2\n 1 foo^Ibar$", a) let a = execute('=p#') call assert_equal("\n2\n 1 foo bar", a) let a = execute('.=') call assert_equal("\n1", a) call assert_fails('3=', 'E16:') call assert_fails('=x', 'E488:') bwipe! endfunc " vim: shiftwidth=2 sts=2 expandtab