mirror of
https://github.com/neovim/neovim.git
synced 2026-08-03 06:09:14 +00:00
Problem: using :version twice leaks memory Solution: Only initialize variables once. (Dominique Pelle, closes vim/vim#5917)278e83863bCherry-pick test_alot.vim change from patch v8.2.0164 so that test_expr.vim and test_version.vim do not conflict. Cherry-pick modeline from patch v8.2.1432. N/A patches for version.c: vim-patch:8.1.0103: long version string cannot be translated Problem: Long version string cannot be translated. Solution: Build the string in init_longVersion().35fb6fbf72vim-patch:8.1.0975: using STRNCPY() wrongly. Warning for uninitialized variable Problem: Using STRNCPY() wrongly. Warning for uninitialized variable. Solution: Use mch_memmove(). Initialize variable. (Yasuhiro Matsumoto, closes vim/vim#3979)c666388367vim-patch:8.1.1403: cannot build without the timer feature Problem: Cannot build without the timer feature. Solution: Add #ifdef.35d5af6c0bvim-patch:8.1.1569: cannot build with signs but without diff feature Problem: Cannot build with signs but without diff feature. Solution: Move #ifdef. (Tom Ryder)bf8c3adef2vim-patch:8.1.1856: popup preview test fails sometimes Problem: popup preview test fails sometimes. (Christian Brabandt) Solution: Clear the command line.78d629a385vim-patch:8.1.1983: compiler nags for uninitialized variable and unused function Problem: Compiler nags for uninitialized variable and unused function. Solution: Add unnecessary initialization. Move function inside #ifdef.ea781459b9vim-patch:8.1.2014: terminal altscreen test fails sometimes Problem: Terminal altscreen test fails sometimes. Solution: Use WaitFor().b9c79cf5ccvim-patch:8.1.2365: missing tests for recent popupwin changes Problem: Missing tests for recent popupwin changes. Solution: Add test cases.20ebbeac46vim-patch:8.1.2406: leaking memory in test_paste and test_registers Problem: Leaking memory in test_paste and test_registers. Solution: Free the old title. Don't copy expr_line.6b649ac4fdvim-patch:8.2.0616: build error when disabling the diff feature Problem: Build error when disabling the diff feature. Solution: Move parenthesis outside of #ifdef. (Tom Ryder)e770598f31vim-patch:8.2.1020: popupwin test fails in the GUI Problem: Popupwin test fails in the GUI. Solution: Send GUI byte sequence for <C-S-a>.b326edf5b3vim-patch:8.2.1036: popupwin test fails sometimes Problem: Popupwin test fails sometimes. Solution: Use WaitForAssert() instead of a sleep.373c65104evim-patch:8.2.1038: popupwin test fails Problem: Popupwin test fails. Solution: Fix WaitForAssert() argument.b2b218d89bvim-patch:8.2.1743: cannot build without the eval feature Problem: Cannot build without the eval feature. Solution: Move shorten_dir outside of #ifdef.273af497cavim-patch:8.2.1843: Netbeans: with huge buffer number memory allocation may fail Problem: Netbeans: with huge buffer number memory allocation may fail. Solution: Check for size overflow.b9616af23f
13 lines
303 B
VimL
13 lines
303 B
VimL
" Test :version Ex command
|
|
|
|
func Test_version()
|
|
" version should always return the same string.
|
|
let v1 = execute('version')
|
|
let v2 = execute('version')
|
|
call assert_equal(v1, v2)
|
|
|
|
call assert_match("^\n\nNVIM v[0-9]\\+\\.[0-9]\\+\\.[0-9]\\+.*", v1)
|
|
endfunc
|
|
|
|
" vim: shiftwidth=2 sts=2 expandtab
|