mirror of
				https://github.com/neovim/neovim.git
				synced 2025-10-26 12:27:24 +00:00 
			
		
		
		
	refactor(test): rename alter_slashes, invert its behavior
- `alter_slashes` belongs in `testutil.lua`, not `testnvim.lua`. - `alter_slashes` is an unusual name. Rename it to `fix_slashes`. - invert its behavior, to emphasize that `/` slashes are the preferred, pervasive convention, not `\` slashes.
This commit is contained in:
		| @@ -22,7 +22,7 @@ describe("'autochdir'", function() | ||||
|   end) | ||||
|  | ||||
|   it('is not overwritten by getwinvar() call #17609', function() | ||||
|     local curdir = vim.uv.cwd():gsub('\\', '/') | ||||
|     local curdir = t.fix_slashes(vim.uv.cwd()) | ||||
|     local dir_a = curdir .. '/Xtest-functional-options-autochdir.dir_a' | ||||
|     local dir_b = curdir .. '/Xtest-functional-options-autochdir.dir_b' | ||||
|     mkdir(dir_a) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Justin M. Keyes
					Justin M. Keyes