Mercurial > vim
comparison src/testdir/test_fold.vim @ 31849:dbec60b8c253 v9.0.1257
patch 9.0.1257: code style is not check in test scripts
Commit: https://github.com/vim/vim/commit/94722c510745a0cfd494c51625a514b92dd2bfb2
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jan 28 19:19:03 2023 +0000
patch 9.0.1257: code style is not check in test scripts
Problem: Code style is not check in test scripts.
Solution: Add basic code style check for test files.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 28 Jan 2023 20:30:04 +0100 |
parents | 5614e76f3dee |
children | 479c93ad4a3b |
comparison
equal
deleted
inserted
replaced
31848:b83cac410fcf | 31849:dbec60b8c253 |
---|---|
454 \ "a"]) | 454 \ "a"]) |
455 set fdm=manual | 455 set fdm=manual |
456 %foldopen! | 456 %foldopen! |
457 13m7 | 457 13m7 |
458 call Check_foldlevels([1, 2, 2, 2, 1, 2, 2, 1, 1, 1, 2, 2, 2, 1, 0]) | 458 call Check_foldlevels([1, 2, 2, 2, 1, 2, 2, 1, 1, 1, 2, 2, 2, 1, 0]) |
459 | 459 |
460 bw! | 460 bw! |
461 endfunc | 461 endfunc |
462 | 462 |
463 func Test_move_folds_around_indent() | 463 func Test_move_folds_around_indent() |
464 new | 464 new |
703 set filetype=c | 703 set filetype=c |
704 | 704 |
705 let content =<< trim [CODE] | 705 let content =<< trim [CODE] |
706 /* | 706 /* |
707 * comment | 707 * comment |
708 * | 708 * |
709 * | 709 * |
710 */ | 710 */ |
711 int f(int* p) { | 711 int f(int* p) { |
712 *p = 3; | 712 *p = 3; |
713 return 0; | 713 return 0; |