mirror of
				https://github.com/neovim/neovim.git
				synced 2025-11-04 09:44:31 +00:00 
			
		
		
		
	It is otherwise impossible to determine which test failed sanitizer/valgrind check. test/functional/helpers.lua module return was changed so that tests which do not provide after_each function to get new check will automatically fail.
		
			
				
	
	
		
			27 lines
		
	
	
		
			554 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			554 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
local helpers = require('test.functional.helpers')(after_each)
 | 
						||
local insert = helpers.insert
 | 
						||
local clear, execute, expect = helpers.clear, helpers.execute, helpers.expect
 | 
						||
 | 
						||
describe('search_mbyte', function()
 | 
						||
  before_each(clear)
 | 
						||
 | 
						||
  it("search('multi-byte char', 'bce')", function()
 | 
						||
    insert([=[
 | 
						||
      Results:
 | 
						||
      
 | 
						||
      Test bce:
 | 
						||
      A]=])
 | 
						||
 | 
						||
    execute('/^Test bce:/+1')
 | 
						||
    execute([[$put =search('A', 'bce', line('.'))]])
 | 
						||
 | 
						||
    -- Assert buffer contents.
 | 
						||
    expect([=[
 | 
						||
      Results:
 | 
						||
      
 | 
						||
      Test bce:
 | 
						||
      A
 | 
						||
      4]=])
 | 
						||
  end)
 | 
						||
end)
 |