comparison src/testdir/test_search.vim @ 12759:528b227051f8 v8.0.1257

patch 8.0.1257: no test for fix of undefined behavior commit https://github.com/vim/vim/commit/2973daafe1732963b8924cb9df53c608804d66b3 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Nov 2 23:15:40 2017 +0100 patch 8.0.1257: no test for fix of undefined behavior Problem: No test for fix of undefined behavior. Solution: Add a test. (closes https://github.com/vim/vim/issues/2255)
author Christian Brabandt <cb@256bit.org>
date Thu, 02 Nov 2017 23:30:05 +0100
parents 0c704288ced4
children 7f27e9769f62
comparison
equal deleted inserted replaced
12758:248eaeef3fa3 12759:528b227051f8
695 let g:buf = term_start([GetVimProg(), '--clean', '-e', '-s', '-c', 'call search(getline("."))', 'samples/test000'], {'term_rows': 3}) 695 let g:buf = term_start([GetVimProg(), '--clean', '-e', '-s', '-c', 'call search(getline("."))', 'samples/test000'], {'term_rows': 3})
696 call assert_equal([''], getline(1, '$')) 696 call assert_equal([''], getline(1, '$'))
697 call term_sendkeys(g:buf, ":qa!\<cr>") 697 call term_sendkeys(g:buf, ":qa!\<cr>")
698 bwipe! 698 bwipe!
699 endfunc 699 endfunc
700
701 func Test_search_undefined_behaviour2()
702 call search("\%UC0000000")
703 endfunc