mirror of
				https://github.com/neovim/neovim.git
				synced 2025-11-04 09:44:31 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
		
			465 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			465 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
local helpers = require('test.functional.helpers')(after_each)
 | 
						|
local eq, clear, call, iswin =
 | 
						|
  helpers.eq, helpers.clear, helpers.call, helpers.iswin
 | 
						|
 | 
						|
describe('exepath() (Windows)', function()
 | 
						|
  if not iswin() then return end  -- N/A for Unix.
 | 
						|
 | 
						|
  it('append extension if omitted', function()
 | 
						|
    local filename = 'cmd'
 | 
						|
    local pathext = '.exe'
 | 
						|
    clear({env={PATHEXT=pathext}})
 | 
						|
    eq(call('exepath', filename..pathext), call('exepath', filename))
 | 
						|
  end)
 | 
						|
end)
 |