Mercurial > vim
comparison src/testdir/test_method.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 | 029c59bf78f1 |
children | 3c2c1cb61004 |
comparison
equal
deleted
inserted
replaced
31848:b83cac410fcf | 31849:dbec60b8c253 |
---|---|
125 eval -1.234->string()->assert_equal('-1.234') | 125 eval -1.234->string()->assert_equal('-1.234') |
126 endfunc | 126 endfunc |
127 | 127 |
128 func Test_method_syntax() | 128 func Test_method_syntax() |
129 eval [1, 2, 3] ->sort( ) | 129 eval [1, 2, 3] ->sort( ) |
130 eval [1, 2, 3] | 130 eval [1, 2, 3] |
131 \ ->sort( | 131 \ ->sort( |
132 \ ) | 132 \ ) |
133 eval [1, 2, 3]->sort() | 133 eval [1, 2, 3]->sort() |
134 | 134 |
135 call assert_fails('eval [1, 2, 3]->sort ()', 'E274:') | 135 call assert_fails('eval [1, 2, 3]->sort ()', 'E274:') |