aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-05-26 07:11:50 +0800
committerGitHub <noreply@github.com>2024-05-26 07:11:50 +0800
commit3d39ea3ea9b6e66640e59731d155d731218e7e62 (patch)
tree8610444deb1748dbb54eb1897f3fc3397241ba7d /test
parenteaaf3d9048f37b2bf5914d34f7348a1ba6ebe250 (diff)
downloadrneovim-3d39ea3ea9b6e66640e59731d155d731218e7e62.tar.gz
rneovim-3d39ea3ea9b6e66640e59731d155d731218e7e62.tar.bz2
rneovim-3d39ea3ea9b6e66640e59731d155d731218e7e62.zip
vim-patch:9.1.0442: hare runtime files outdated (#29011)
Problem: hare runtime files outdated Solution: runtime(hare): update hare.vim to match upstream (Amelia Clarke) closes: vim/vim#14836 https://github.com/vim/vim/commit/35dfe58a540e2fb0eff953630f8e4fcbf4bc26ca Co-authored-by: Amelia Clarke <selene@perilune.dev>
Diffstat (limited to 'test')
-rw-r--r--test/old/testdir/test_filetype.vim35
1 files changed, 35 insertions, 0 deletions
diff --git a/test/old/testdir/test_filetype.vim b/test/old/testdir/test_filetype.vim
index 34fe93fd55..16125559cf 100644
--- a/test/old/testdir/test_filetype.vim
+++ b/test/old/testdir/test_filetype.vim
@@ -1511,6 +1511,41 @@ func Test_git_file()
filetype off
endfunc
+func Test_haredoc_file()
+ filetype on
+ call assert_true(mkdir('foo/bar', 'pR'))
+
+ call writefile([], 'README', 'D')
+ split README
+ call assert_notequal('haredoc', &filetype)
+ bwipe!
+
+ let g:filetype_haredoc = 1
+ split README
+ call assert_notequal('haredoc', &filetype)
+ bwipe!
+
+ call writefile([], 'foo/quux.ha')
+ split README
+ call assert_equal('haredoc', &filetype)
+ bwipe!
+ call delete('foo/quux.ha')
+
+ call writefile([], 'foo/bar/baz.ha', 'D')
+ split README
+ call assert_notequal('haredoc', &filetype)
+ bwipe!
+
+ let g:haredoc_search_depth = 2
+ split README
+ call assert_equal('haredoc', &filetype)
+ bwipe!
+ unlet g:filetype_haredoc
+ unlet g:haredoc_search_depth
+
+ filetype off
+endfunc
+
func Test_hook_file()
filetype on