mirror of
				https://github.com/neovim/neovim.git
				synced 2025-11-04 09:44:31 +00:00 
			
		
		
		
	test: verify that msgpacks-rpc exceptions are working
This commit is contained in:
		@@ -105,4 +105,10 @@ describe('vim_* functions', function()
 | 
			
		||||
      eq(nvim('get_windows')[2], nvim('get_current_window'))
 | 
			
		||||
    end)
 | 
			
		||||
  end)
 | 
			
		||||
 | 
			
		||||
  it('can throw exceptions', function()
 | 
			
		||||
    local status, err = pcall(nvim, 'get_option', 'invalid-option')
 | 
			
		||||
    eq(false, status)
 | 
			
		||||
    ok(err:match('Invalid option name') ~= nil)
 | 
			
		||||
  end)
 | 
			
		||||
end)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user