1
0
Fork 0
mirror of synced 2024-12-25 00:03:20 -05:00

Update editorconfig-vim.

This commit is contained in:
Kurtis Moxley 2022-05-19 22:02:24 +08:00
parent f219991e20
commit 82a7b47473
12 changed files with 13 additions and 1 deletions

0
sources_non_forked/editorconfig-vim/LICENSE.PSF Normal file → Executable file
View file

0
sources_non_forked/editorconfig-vim/mkzip.sh Normal file → Executable file
View file

View file

View file

View file

View file

View file

View file

View file

0
sources_non_forked/editorconfig-vim/tests/fetch-vim.sh Normal file → Executable file
View file

View file

@ -18,7 +18,8 @@ def test_editorconfig(vim, file_name, expected_values)
vim.edit(File.join(BASE_PATH, file_name)) vim.edit(File.join(BASE_PATH, file_name))
expected_values.each do |key, val| expected_values.each do |key, val|
expect(vim.echo("&l:#{key}")).to eq(val) vimval = vim.echo("&l:#{key}")
expect(vimval).to eq(val), "key #{key} had value #{vimval}, but I expected #{val}"
end end
vim.command 'bd!' vim.command 'bd!'

View file

@ -11,6 +11,17 @@ if [[ ( ! "${TEST_WHICH:-}" ) && "${1:-}" ]]; then
export TEST_WHICH="$1" export TEST_WHICH="$1"
fi fi
if [[ ! "${TEST_WHICH:-}" ]]; then
cat <<EOT
Usage: $0 \$WHICH
or: TEST_WHICH=\$WHICH $0
Run automated tests of editorconfig-vim
\$WHICH can be "core" or "plugin".
EOT
exit 2
fi
if [[ "$TEST_WHICH" = 'plugin' ]]; then # test plugin if [[ "$TEST_WHICH" = 'plugin' ]]; then # test plugin
# If not running from Travis, do what Travis would have # If not running from Travis, do what Travis would have