aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/old/testdir/gen_opt_test.vim12
1 files changed, 7 insertions, 5 deletions
diff --git a/test/old/testdir/gen_opt_test.vim b/test/old/testdir/gen_opt_test.vim
index f64798f8dd..325e7e9438 100644
--- a/test/old/testdir/gen_opt_test.vim
+++ b/test/old/testdir/gen_opt_test.vim
@@ -25,7 +25,7 @@ endwhile
call extend(global_locals, #{
\ scrolloff: -1,
\ sidescrolloff: -1,
- \ undolevels: -12345,
+ \ undolevels: -123456,
\})
" Get local-noglobal options.
@@ -63,7 +63,8 @@ let skip_setglobal_reasons = #{
\ winhighlight: 'TODO(nvim): fix missing error handling for setglobal',
\}
-" The terminal size is restored at the end.
+" Script header.
+" The test values contains multibyte characters.
let script = [
\ '" DO NOT EDIT: Generated with gen_opt_test.vim',
\ '" Used by test_options_all.vim.',
@@ -453,8 +454,9 @@ for option in options
endfor
" Testing to clear the local value and switch back to the global value.
if global_locals->has_key(fullname)
- let swichback_val = global_locals[fullname]
- call add(script, $'setlocal {opt}={swichback_val}')
+ let switchback_val = global_locals[fullname]
+ call add(script, $'setlocal {opt}={switchback_val}')
+ call add(script, $'call assert_equal(&g:{fullname}, &{fullname})')
endif
endfor
@@ -516,4 +518,4 @@ endif
qa!
-" vim:sw=2:ts=8:noet:nolist:nosta:
+" vim:sw=2:ts=8:noet:nosta: