mirror of
				https://github.com/neovim/neovim.git
				synced 2025-11-03 17:24:29 +00:00 
			
		
		
		
	Sort oldfiles in the marks_spec tests to avoid random ordering errors.
According to @ZyX-I in #3594, ordering is not important so let's use @tarruda's fix by sorting the results.
This commit is contained in:
		@@ -108,6 +108,7 @@ describe('ShaDa support code', function()
 | 
			
		||||
    nvim_command('qall')
 | 
			
		||||
    reset()
 | 
			
		||||
    local oldfiles = meths.get_vvar('oldfiles')
 | 
			
		||||
    table.sort(oldfiles)
 | 
			
		||||
    eq(2, #oldfiles)
 | 
			
		||||
    eq(testfilename, oldfiles[1]:sub(-#testfilename))
 | 
			
		||||
    eq(testfilename_2, oldfiles[2]:sub(-#testfilename_2))
 | 
			
		||||
@@ -115,6 +116,7 @@ describe('ShaDa support code', function()
 | 
			
		||||
    eq(tf_full_2, oldfiles[2])
 | 
			
		||||
    nvim_command('rshada!')
 | 
			
		||||
    local oldfiles = meths.get_vvar('oldfiles')
 | 
			
		||||
    table.sort(oldfiles)
 | 
			
		||||
    eq(2, #oldfiles)
 | 
			
		||||
    eq(testfilename, oldfiles[1]:sub(-#testfilename))
 | 
			
		||||
    eq(testfilename_2, oldfiles[2]:sub(-#testfilename_2))
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user