aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/old/testdir/test_filter_map.vim6
-rw-r--r--test/old/testdir/test_highlight.vim3
-rw-r--r--test/old/testdir/test_search.vim2
3 files changed, 8 insertions, 3 deletions
diff --git a/test/old/testdir/test_filter_map.vim b/test/old/testdir/test_filter_map.vim
index 9b1dc93fd4..3040b7b0d0 100644
--- a/test/old/testdir/test_filter_map.vim
+++ b/test/old/testdir/test_filter_map.vim
@@ -144,7 +144,7 @@ func Test_filter_map_string()
let lines =<< trim END
VAR s = "abc"
call filter(s, '"b" != v:val')
- call assert_equal(s, s)
+ call assert_equal('abc', s)
call assert_equal('ac', filter('abc', '"b" != v:val'))
call assert_equal('あいうえお', filter('あxいxうxえxお', '"x" != v:val'))
call assert_equal('あa😊💕💕b💕', filter('あxax😊x💕💕b💕x', '"x" != v:val'))
@@ -165,7 +165,7 @@ func Test_filter_map_string()
let lines =<< trim END
VAR s = "abc"
call map(s, 'nr2char(char2nr(v:val) + 2)')
- call assert_equal(s, s)
+ call assert_equal('abc', s)
call assert_equal('cde', map('abc', 'nr2char(char2nr(v:val) + 2)'))
call assert_equal('[あ][i][う][え][お]', map('あiうえお', '"[" .. v:val .. "]"'))
call assert_equal('[あ][a][😊][,][‱][‼][⁇][⁈][⁉][💕][b][💕][c][💕]', map('あa😊,‱‼⁇⁈⁉💕b💕c💕', '"[" .. v:val .. "]"'))
@@ -184,7 +184,7 @@ func Test_filter_map_string()
let lines =<< trim END
VAR s = "abc"
call mapnew(s, 'nr2char(char2nr(v:val) + 2)')
- call assert_equal(s, s)
+ call assert_equal('abc', s)
call assert_equal('cde', mapnew('abc', 'nr2char(char2nr(v:val) + 2)'))
call assert_equal('[あ][i][う][え][お]', mapnew('あiうえお', '"[" .. v:val .. "]"'))
call assert_equal('[あ][a][😊][,][‱][‼][⁇][⁈][⁉][💕][b][💕][c][💕]', mapnew('あa😊,‱‼⁇⁈⁉💕b💕c💕', '"[" .. v:val .. "]"'))
diff --git a/test/old/testdir/test_highlight.vim b/test/old/testdir/test_highlight.vim
index 8ed03732c2..dcfd1a350a 100644
--- a/test/old/testdir/test_highlight.vim
+++ b/test/old/testdir/test_highlight.vim
@@ -864,17 +864,20 @@ func Test_highlight_default_colorscheme_restores_links()
let hlTestHiPre = HighlightArgs('TestHi')
" Test colorscheme
+ call assert_equal("\ndefault", execute('colorscheme'))
hi clear
if exists('syntax_on')
syntax reset
endif
let g:colors_name = 'test'
+ call assert_equal("\ntest", execute('colorscheme'))
hi link TestLink ErrorMsg
hi TestHi ctermbg=green
" Restore default highlighting
colorscheme default
" 'default' should work no matter if highlight group was cleared
+ call assert_equal("\ndefault", execute('colorscheme'))
hi def link TestLink Identifier
hi def TestHi ctermbg=red
let hlTestLinkPost = HighlightArgs('TestLink')
diff --git a/test/old/testdir/test_search.vim b/test/old/testdir/test_search.vim
index 4a92ae34e4..c8152af4f3 100644
--- a/test/old/testdir/test_search.vim
+++ b/test/old/testdir/test_search.vim
@@ -1762,6 +1762,8 @@ func Test_invalid_regexp()
call assert_fails("call search('\\(')", 'E54:')
call assert_fails("call search('\\)')", 'E55:')
call assert_fails("call search('\\z\\(\\)')", 'E66:')
+ call assert_fails("call search('\\z2')", 'E67:')
+ call assert_fails("call search('\\zx')", 'E867:')
call assert_fails("call search('\\%[ab')", 'E69:')
call assert_fails("call search('\\%[]')", 'E70:')
call assert_fails("call search('\\%9999999999999999999999999999v')", 'E951:')