summaryrefslogtreecommitdiffstats
path: root/src/testdir/test_functions.vim
diff options
context:
space:
mode:
Diffstat (limited to 'src/testdir/test_functions.vim')
-rw-r--r--src/testdir/test_functions.vim17
1 files changed, 10 insertions, 7 deletions
diff --git a/src/testdir/test_functions.vim b/src/testdir/test_functions.vim
index 4529a5e8d5..8664724b5c 100644
--- a/src/testdir/test_functions.vim
+++ b/src/testdir/test_functions.vim
@@ -3475,13 +3475,16 @@ endfunc
" Test for the reverse() function with a string
func Test_string_reverse()
- call assert_equal('', reverse(test_null_string()))
- for [s1, s2] in [['', ''], ['a', 'a'], ['ab', 'ba'], ['abc', 'cba'],
- \ ['abcd', 'dcba'], ['«-«-»-»', '»-»-«-«'],
- \ ['🇦', '🇦'], ['🇦🇧', '🇧🇦'], ['🇦🇧🇨', '🇨🇧🇦'],
- \ ['🇦«🇧-🇨»🇩', '🇩»🇨-🇧«🇦']]
- call assert_equal(s2, reverse(s1))
- endfor
+ let lines =<< trim END
+ call assert_equal('', reverse(test_null_string()))
+ for [s1, s2] in [['', ''], ['a', 'a'], ['ab', 'ba'], ['abc', 'cba'],
+ \ ['abcd', 'dcba'], ['«-«-»-»', '»-»-«-«'],
+ \ ['🇦', '🇦'], ['🇦🇧', '🇧🇦'], ['🇦🇧🇨', '🇨🇧🇦'],
+ \ ['🇦«🇧-🇨»🇩', '🇩»🇨-🇧«🇦']]
+ call assert_equal(s2, reverse(s1))
+ endfor
+ END
+ call v9.CheckLegacyAndVim9Success(lines)
" test in latin1 encoding
let save_enc = &encoding