Mercurial > vim
comparison src/testdir/test_digraph.vim @ 21765:08940efa6b4e v8.2.1432
patch 8.2.1432: various inconsistencies in test files
Commit: https://github.com/vim/vim/commit/6d91bcb4d23b5c6a0be72c384beaf385e2d9d606
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Aug 12 18:50:36 2020 +0200
patch 8.2.1432: various inconsistencies in test files
Problem: Various inconsistencies in test files.
Solution: Add modelines where they were missing. Use Check commands instead
of silently skipping over tests. Adjust indents and comments.
(Ken Takata, closes #6695)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 12 Aug 2020 19:00:08 +0200 |
parents | 1c71605f0c5d |
children | e0af4660dfc7 |
comparison
equal
deleted
inserted
replaced
21764:476b6faad407 | 21765:08940efa6b4e |
---|---|
451 \ .. 'Custom\n.*\<lt < 60\>', out_bang_with_custom) | 451 \ .. 'Custom\n.*\<lt < 60\>', out_bang_with_custom) |
452 bw! | 452 bw! |
453 endfunc | 453 endfunc |
454 | 454 |
455 func Test_loadkeymap() | 455 func Test_loadkeymap() |
456 if !has('keymap') | 456 CheckFeature keymap |
457 return | |
458 endif | |
459 new | 457 new |
460 set keymap=czech | 458 set keymap=czech |
461 set iminsert=0 | 459 set iminsert=0 |
462 call feedkeys("o|\<c-^>|01234567890|\<esc>", 'tx') | 460 call feedkeys("o|\<c-^>|01234567890|\<esc>", 'tx') |
463 call assert_equal("|'é+ěščřžýáíé'", getline('.')) | 461 call assert_equal("|'é+ěščřžýáíé'", getline('.')) |
492 bwipe! | 490 bwipe! |
493 endfunc | 491 endfunc |
494 | 492 |
495 " Test for error in a keymap file | 493 " Test for error in a keymap file |
496 func Test_loadkeymap_error() | 494 func Test_loadkeymap_error() |
497 if !has('keymap') | 495 CheckFeature keymap |
498 return | |
499 endif | |
500 call assert_fails('loadkeymap', 'E105:') | 496 call assert_fails('loadkeymap', 'E105:') |
501 call writefile(['loadkeymap', 'a'], 'Xkeymap') | 497 call writefile(['loadkeymap', 'a'], 'Xkeymap') |
502 call assert_fails('source Xkeymap', 'E791:') | 498 call assert_fails('source Xkeymap', 'E791:') |
503 call delete('Xkeymap') | 499 call delete('Xkeymap') |
504 endfunc | 500 endfunc |